Wednesday, January 12, 2005
XML Madness
After 10 frustrating hours I'm still struggling to Convert base64 type response data to a binary image file for display. Everything has to work both in ASP and .NET Solutions, so we're trying to wrap our check image dll in a Web Service. We've opted to transport the data via a binary stream so there's no messy clean up of image files after an image is served. The real blocker is how to convert the base64 data to binary and write the binary content to a page. We've found base64 decoding functions in vb, however when we read in the textual data from the xml element, I believe newline and linefeed are being reformatted. oXMLHTTP.responseText appears to "preformat" the text which leads to problems while decoding with our function. oXMLHTTP.responseBody returns only the raw text, however the vb string functions don't seem compatible with the return type. Once again its a run around, and I spend more time guess and checking for solutions than making any real progress. Hopefully oXMLHTTP offers other methods that will return workable data. I plan to explore more tomorrow.
No comments:
Post a Comment