I m getting base64 string
from server and I want to save file in my all browser(IE,FF , chrome).
suppose I am getting PDF base64 string then how to save in brwsore?
Similarly , Image ,doc base64 string then how to save ?
var myBaseString = charUri; // charURI is base64 encoded data of png image (data:image/png;base64,asP......)
var a = document.createElement('a');
a.href = myBaseString;
a.download = "chart.png";
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.