[jdom-interest] Qe: Binary data in XML
tmo at ebi.ac.uk
Wed May 30 03:42:47 PDT 2001
Martin Gerlach wrote:
> Is it possible to store binary data in a XML Document, maybe
> CDATA-Section or something else? Or is this not allowed at...
> I don't mean a reference to binary files, i mean binary data
> itself to store in a XML-File.
There's no reason why not, as long as you encode the data in such a way
that it can't accidentally include the closing tag for the CDATA block.
I suspect (although I haven't checked) that the UU-encode that mail
attachments use might do what you want, and there are many
implementations out there.
"Bad kitty! Give me my crudely
fashioned weapon back!"
More information about the jdom-interest