I'm working on a system that uses XMLHTTP to get information to an ASP page. XML Now I want to be able to send images this way. I know how to embed images in an XML document (think they will be in base64 format), but when the ASP site at the clients side receives the XML document, how can I show the image? is the only information carrier available, hence I can't just insert an url for the image, it has to be embedded in the xml document.
I've tried to use a div-tag that I try to update the innerHTML of, but that doesn't work. I mean, what should I put in there? I cannot put a <img> tag since there are no filename to give as src argument. I cannot either, of course, just insert the response since it'll just show rubbish (the gif-file as characters).
Here's a snippet of the code run at the server:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", " False
xml.Send
Response.ContentType = "image/gif"
Response.Write xml.responseBody
For the client side I don't have any code worth to mention. How can I handle this answer to show my image in the browser?
I've tried to use a div-tag that I try to update the innerHTML of, but that doesn't work. I mean, what should I put in there? I cannot put a <img> tag since there are no filename to give as src argument. I cannot either, of course, just insert the response since it'll just show rubbish (the gif-file as characters).
Here's a snippet of the code run at the server:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", " False
xml.Send
Response.ContentType = "image/gif"
Response.Write xml.responseBody
For the client side I don't have any code worth to mention. How can I handle this answer to show my image in the browser?