Thanks. Last question, how do I use BASE64 encoding when I use
MSXML DOM API to build XML files? i.e., how do I encode my
binary data in a Visual C++ program?
"Smith, Jason" wrote:
> That is not too bad, depending on how many images you put in a single XML
> file. As long as your Server can handle it, it should be no problem. You
> should ask this question, do you need to actually send the image itself, or
> can you just send a reference to the image's location and have the
> application go and resolve it when necessary.
> In our case, we have no choice, we need the images actually transmitted to
> our server, so the BASE 64 method was a good solution.
> -----Original Message-----
> From: Liu, Dezhi [mailto:[log in to unmask]]
> Sent: Wednesday, July 12, 2000 4:30 PM
> To: [log in to unmask]
> Subject: Re: How to embed binary data in XML file?
> Great. I see.
> I know there are three methods to embed binary data into XML file.
> They are CDATA, BASE64 encoding and MIME encoding. I will try
> the last two methods.
> Our binary data mainly are 3D scanned data. Each data set is about
> 300 KB large. Do you think it is better to embed the data into XML file?
> Thanks again.
> "Smith, Jason" wrote:
> > Well,
> > We have played with images and XML quite a bit. We have a need to send
> > images directly to our Server rather than just include a reference to the
> > image, which is the typical way that images are handled.
> > Initally, we used a zip file approach, where we zipped an XML file which
> > contained information about the image, e.g. file name, description, etc.,
> > along with the image itself, say a *.gif file.
> > This approach works, but has some issues. We now use a BASE64 encoding
> > method to encod the image into text, then we simply embed the test in the
> > XML Document as I mentioned.
> > <BINARY_DATA VALUE="ASKLFJKLSAJL
> > KLNDFKLJSASADFLKJWLA;RJIOEDFJSDKLFJLDJF;SJSDKL;F"/>
> > The result looks something like the above.
> > On the server side we decode the VALUE Attribute of the BINARY_DATA
> > This works great!
> > I would recommend doing some research on BASE64 Encoding and Decoding (a
> > Search should provide lots of info). Also, check out www.xml.com for
> > information on XML and images.
> > Best wishes
> > -----Original Message-----
> > From: Liu, Dezhi [mailto:[log in to unmask]]
> > Sent: Wednesday, July 12, 2000 4:02 PM
> > To: [log in to unmask]
> > Subject: Re: How to embed binary data in XML file?
> > Thank you very much.
> > I want to embed .gif file data (binary data) into XML file. What should
> > I do?
> > "Smith, Jason" wrote:
> > > You may want to use Base64 encoding.
> > >
> > > For example:
> > >
> > > <BINARY_DATA VALUE="base64 data here"/>
> > >
> > > -----Original Message-----
> > > From: Liu, Dezhi [mailto:[log in to unmask]]
> > > Sent: Wednesday, July 12, 2000 3:26 PM
> > > To: [log in to unmask]
> > > Subject: How to embed binary data in XML file?
> > >
> > > Hi, all
> > >
> > > I am a beginer of XML. Now I try to embed some binary data into
> > > XML. How can I do this?
> > >
> > > Regards