3

Hi I save a canvas with the following codes.

var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
window.location.href = img;  

However IE9 doesn't work. Can not open data:image/octet-stream;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAA.....

How can I make it work at IE9? Thanks for your helps...

user1874941
  • 2,805
  • 4
  • 19
  • 31
  • Possible Duplicate: http://stackoverflow.com/questions/7405345/data-uri-scheme-and-internet-explorer-9-errors – Chad Apr 05 '13 at 13:58

1 Answers1

0

may be try using

window.location.assign(img); // or
window.location = img;

for more details check window.location

Subash
  • 6,844
  • 7
  • 43
  • 68