Click to See Complete Forum and Search --> : XML Base64 Decode problem


Ste
September 25th, 2003, 12:03 PM
This is driving me a little crazy. I've searched the forum but nothing seems to match my problem.

I have to transmit a GIF across the internet using VB/XML/XMLHTTP.

To start with I build a string strGIF which holds the base64 encoded string of the GIF - easy.

If I decode and save this string strGIF (that contains the encoded GIF) the image saves fine - using Put #1,, strGIF in VB.

However, if I append the GIF into the XML dom, then as a test decode and save the string from the dom the image does not save correctly - using Put #1,,xmlDoc.getElementsByTagName("GIF").item(0).text in VB

It appears the DOM is manipulating the encoded string somehow leaving me close to insanity ! !

any helpers pleeeezeee.

Steve
:confused:

Ste
September 30th, 2003, 11:20 AM
Sorted now, problem was in the way I was reading the GIF into the XML DOM, found the solution here

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q254/3/88.ASP&NoWebContent=1

Sanity restored

Ste

:D