Hi I want to save a canvas locally in IE with execCommand("Sa veAs"). Here is my code.
However when new window opened the page cannot be displayed. data:image/octet-stream;base64.. . How can I solve this problem? Thank you very much...
Code:
var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream"); window.win = open (img); setTimeout('win.document.execCommand("SaveAs")', 1000);
Comment