开发者

How to send image through XML using C#

I have a i开发者_Python百科mage that I need to embed in XML and then retrieve the image using C#. How can I do this?


Convert it to a byte[] and convert this to a Base64 datablock (using Convert.ToBase64String()), which you put into the xml. On the other side, you simply have to decode it with Convert.FromBase64String() and deal with the resulting byte[] the way you like.


Either you have to include binary data in XML tags; or you need to put the image somewhere else and send the link with your XML


you can convert your image into base64 data and write in xml !

help:

code snippet

stackoverflow discussion


embed image in xml? You mean putting image in a xml document?

See the link http://www.codeproject.com/KB/cs/lookchanger.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜