How to send image via XML using C #

I have an image that I need to embed in XML, and then get the image using C #. How can i do this?

+3
source share
4 answers

Convert it to byte[]and convert it to the Base64 database (using Convert.ToBase64String()) that you put in xml. On the other hand, you just need to decode it with Convert.FromBase64String()and process the resulting byte[]method that you like.

+10
source

Or you must include binary data in the XML tags; or you need to put the image in another place and send a link with your XML

0
source
0

Insert image in xml? Do you want to put an image in an XML document?

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

0
source

Source: https://habr.com/ru/post/1748329/


All Articles