save a canvas locally in IE JavaScript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahmetsan
    New Member
    • Jan 2013
    • 11

    save a canvas locally in IE JavaScript

    Hi I want to save a canvas locally in IE with execCommand("Sa veAs"). Here is my code.
    Code:
     var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");     
     window.win = open (img);
     setTimeout('win.document.execCommand("SaveAs")', 1000);
    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...
  • omerbutt
    Contributor
    • Nov 2006
    • 638

    #2
    hi please provide the complete part of the code that you are working on so that the problem could be identified
    regards,
    Omer ASlam

    Comment

    Working...