Is it possible to convert raw image content into an image file?
function reqListener () {
console.log(this.responseText);
}
var oReq = new XMLHttpRequest();
oReq.onload = reqListener;
oReq.open("POST", "http://static3.filehorse.com/icons-web/office-and-business-tools/zoho-icon-32.png", true);
oReq.send();
I have received raw file data that looks like this
PNG
IHDR szz lIDATxڭyTfgz
BxlݖyuXiʱɱq('̜}_7 4 ]=%brD$,#+I ƚ˗]4Ȃ?ݧ'ϩ:g^\]Y^ܸKJwq fi̪ډxIhkxk90~Wp!@HQadDY(FRQˍ/+&)1Vi4Q!)4*jDLDT+Af~& hrn{;w9| Oտ5|_N:&)]".*RȵK.[tbKc9ÀQL
q45t;~. Y d-$5ge7h[Gl,8I:Ci iߎ#(- QD1ɠ(q#Nrï(|ъ(A'hͰwBTwbW2![?4*\:76ԷQX}jEAT*1KEǣ(/AAZ)Ld(D?!sGLq͡?+_c &O&)ch xu5ZߥCLĤ+37b6S~ URƭ@ (0).*0fx O%#VjD"|_0KUpңMJ쀱Dh&bV1~1'aaSzV 1U#=r*M5zK-dq?;bnr rH.e:M]6!zyn-)6<ϣFʫ/s<<L[䈎=ꀑC80kt^Z/[ȦC DO$qcN6ezp*^ۺ[BGu-\z1OޫE :? [B[3XcP<_.ĭ#J^DO3#ᄱGH#&]2A
kC:z֍7-~i+|#W.;/+ҍHxvh_?/۔\gd4~ EVn<ƃi>/}4 Yu&#hYhRpה|)A {澽3kWcXCY;6n͓zklg7p֭$lAmeI4DCIi2~Dҟ˗d5T:qFS߾GDnZ@T^nϢ\s>KVd]-u眎q\'⤪~>8"M^g<q*M=I+ZUUOWi:lE+*Ʀ9ݕ_]ƺ_Nշ(V 90 ;d)Ǟ)sdC"E[k»_aVM2C=E
ʍߎ./$N)^pw rxxJ&WLo! @H;@i#AOiwxyC7lmglf4@X E:^V@3rzʔC s3F5#,ͽeo2P,/jF\TE1 O!^ ֙#.(άjCCcC͡q.*hM$<BRf{=r3AL=6u";uB۽&o}˱սDzr%䌡 (A;|X/g"'ބ;l,b=rj@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