title: Convert bytes to XML legal text
body: <p>I have to store the bytes of a image file inside of an XML file that is read by another program... The problem is, if I inject it as just plain bytes, the end-program has an error (presumably because it contains non-legal XML characters).  How can I convert bytes into something that XML can legally read?  I really have no other options at this point.  I have to inject the image file as bytes (specifically a .bmp file).</p>