Created
September 23, 2014 07:58
-
-
Save jtyjty99999/cdd6122885f5cdbd22bb to your computer and use it in GitHub Desktop.
ie base64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x= new ActiveXObject("Msxml2.XMLHTTP.6.0"); | |
x.onreadystatechange=function(){ | |
if(x.readyState<4)return; | |
var xml_dom = new ActiveXObject("MSXML2.DOMDocument"); | |
var tmpNode = xml_dom.createElement("tmpNode"); | |
tmpNode.dataType = "bin.base64"; | |
tmpNode.nodeTypedValue = x.responseBody; | |
base64string=tmpNode.text.replace(/\n/g,""); | |
document.write("<img src=\"data:image/bmp;base64,"+base64string+"\">") | |
} | |
x.open("get","http://www.blogjava.net/images/blogjava_net/emu/1359/o_emu120.jpg",true); | |
x.send(""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment