Binary with XmlHTTPRequest

by Mohan 2012-09-20 23:44:58


Binary with XmlHTTPRequest
browser related example
var req = new XMLHttpRequest();
req.open('GET', "http://code.google.com/images/code_sm.png",false);
req.overrideMimeType('text/plain; charset=x-user-defined');
//req.overrideMimeType('application/octet-stream');
req.send(null);
var val = req.responseText;
Print( escape(val.substr(0,10)) );


Tagged in:

534
like
0
dislike
0
mail
flag

You must LOGIN to add comments