简体   繁体   English

Base64编码的图像字符串到Oracle BLOB数据库中

[英]Base64 encoded image string into Oracle BLOB database

I am tasked with taking a base64 encoded image and storing it into an Oracle SQL database as a blob. 我的任务是获取base64编码的映像并将其作为Blob存储到Oracle SQL数据库中。

I have the string of the base64 encoded image but it doesn't look like what gets exported from the sql database column blob. 我有base64编码图像的字符串,但它看起来不像是从sql数据库列blob中导出的字符串。

When I export the blob from the database into an xml it looks like so: 当我从数据库将blob导出到xml时,它看起来像这样:

image="FFD8FFE000104A46494600010100000100010000FFFE003B43524541544F523A2067642D6A7065672076312E3020287573696E6720494A47204A50454720763830292C207175616C697479203D2039300AFFDB0043000302020302020303030304030304050805050404050A070706080C0A0C0C0B0A0B0B0D0E12100D0E110E0B0B101610111314...." 图像=“ FFD8FFE000104A46494600010100000100010000FFFE003B43524541544F523A2067642D6A7065672076312E3020287573696696E6720494A47204A50454720763830292C207175616C697479203D2039300AFFDB0043000302020302020303030304304030030030E0B00B00B0000B0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ca00b001000000000100000000000100000对于00

Does anyone know what conversion this is? 有人知道这是什么转换吗? or is this type of conversion possible in C#? 还是在C#中可能进行这种类型的转换?

Any help is greatly appreciated, or just a push in the right direction would be awesome also! 非常感谢您的任何帮助,或者只是朝着正确的方向推进也将非常棒!

Thanks, 谢谢,

Image =以十六进制显示原始文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM