I have a image 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With