Moderator's notes: Copy of a new, duplicate thread I deleted. I paste here the message (in black) to avoid loosing it. Violet sentences are mine.
//this is a repost, I think I posted in the wrong section originally and was unable to get an answer that works there so I'm hoping this is right
You are in the right section, I probably moved the thread from the Programming Questions. Questions about applets belong here. I deleted the duplicate thread... If you have trouble making it work, just continue on this thread.
So, I have a simple drawing applet (it is signed and all that good stuff) but I learned that just saveFrame doesn't appear to work for online use. I was hoping someone could help me be able to save a jpg of the "canvas" (or the entire thing) and either put it in the common downloads place of the user or ask the user where to save it. I haven't been able to figure this out :-(
Things that I've done/tried already:
- The applet is signed and I do get the dialog box confirmation when running
- I've tried setting a folder with selectFolder() (this doesnt appear to work at all for saveFrame or I'm doing it wrong, both computer and internet versions)
Just show your attempts, perhaps you made a base error.
- I tried selectOutput() but that appear to save information to a file already made (like strings to a .txt and doesn't appear to be useful for saving an image like this)
Idem as above.
- I have read everything I can find on save(), saveFrame(), selectXXX() and can't find anything that explains my goal so please don't just point me at those, if they are solutions please explain what to do with them :-(
- I dont think I can save the image server side but if that is a possible solution I'd like to hear about it
I pointed to the PostToWeb library, search it on the forum, you will find lot of relevant threads.