From: Olumide
I'm looking to create an XML element, e.g. <Binary>, that contains
binary data. I know that the data should be in base64. What I'd like to
know is if it is sufficient to simply dump the binary data between the
<Binary> tags like so
<Binary>TWFuIGlzIGRpc3Rpbmd1aXNo...<Binary>
and if xerces capable of detecting that this data is in base64 and
extracting characters or bytes from it or is this up to the custom handler.<
I'm no expert but I can imagine all sorts of problems with putting actual
binary data in an xml file. And I'm not sure how you relate 'base64' to
'binary data'.
If I were storing an arbitrary binary file (say) in an XML document, I'd be
tempted to print out each byte as a pair of hexadecimal digits in the range
00 to FF. It's not the most compact way, but whoever designed XML to be
compact?
Dave
David Webber
Mozart Music Software
http://www.mozart.co.uk/