Sergiusz Michalski wrote:
Is it possible to get image using XMLHTTP and display it on WWW ??
You have
var img = document.createElement('img');
img.onload = function (evt) {
document.body.appendChild(this);
};
img.src = 'whatever.gif';
if you want to load and display an image in a HTML page.
XMLHTTP is not suitable for bitmap image data unless the binary data is
encoded in the XML in base64 for instance, you would then need to decode
the data on the client.
There are some exceptions, for instance black and white XBM images would
do but not all browsers support that format and support the necessary
<img src="javascript
: scriptExpressionReturningImageDataHere">
--
Martin Honnen
http://JavaScript.FAQTs.com/