XML doesn't support storing binary data directly, but you can use Base64
encoding
(e.g. use XmlTextWriter.WriteBase64() method) to store binary data within an
XML document.
When you have a BASE64 encoded image, you could decode it, convert it to a
stream and construct a Bitmap instance using this stream as a parameter.
However, I suggest that you consider storing your image in a resource file
instead, since this type of file is a better choice for storing images.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.