PDA

View Full Version : Saving a JPG dile with JavaScript



sgFan
October 6th, 2005, 05:30 AM
Hi, does anyone know if it's possible to save an image to a hard drive using JavaScript.

A JPG image from a Flash movie is displayed in an HTML file and what I'd like is for there to be a save button underneath, where the user can save it to their desktop.

I've researched this and come up with nothing useful. Does anyone know if it can be accomplished?

Jeff Wheeler
October 8th, 2005, 11:44 AM
I don't think so.

Edit: Yes, it sorta can. You can popup the save as dialog box, using this: http://kirupa.com/forum/showpost.php?p=293328&postcount=6