quote:
Originally posted by MeEtc
OK, so how can XMLHTTPRequest load an image...
Good question... I didn't think that through before posting.
I just thought using a header would be easier than wrapping everything in JSON like Matti suggested.
You
might be able to do it using a
data: URI...
js code:
imageElement.src = "data:image/png;base64," + req.responseText;
That code would require the image data to be base64-encoded on the server side. It might work without encoding too, but you can test that yourself.