here is some part of my code
xmlhttp.open("GET", theUrl, true);
document.imglive.innerHTML = '<img src="data:image/jpeg,' + xmlhttp.responseText + '"/>';
that don´t seem to work.
i also tried
document.imglive.src= xmlhttp.responseText;
that neither worked
I checked some of the asked questions here but none of the answers where helping at this porblem.
Use base64 for these things. In modern browsers there’s this
btoanative function that may help you:For other browsers there are simple emulated implementations, just check them out.
P.S.: don’t pollute the
documentobject, use a separate variable or a namespace.