SyntaxFix
Write A Post
Hire A Developer
Questions
I always convert the byte data to a Base64 encoding and then insert the image.
This is also the way that Word does it, for it's XML files (not that Word is a good example on how to work with XML :P).