Click to See Complete Forum and Search --> : representing binary data in XML


Lothar Haensler
August 10th, 2000, 08:43 AM
Hi,

I'd like to include binary data (e.g. the contents of a local file) in my xml file.
I want to use XMLHTTPRequest object to upload local files to a server.

How to I get these things into my XML document.
I tried creating a CDATA section in my XML file.
But, only a few bytes of my original file are stored in that element.
(I use MSXML version 3)

Any hints?

Lothar Haensler
August 24th, 2000, 03:01 AM
in case anyone else needs the answer:
you need to base64 encode your binary data and store it in a CDATA node.