applet to jpg

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Bob

applet to jpg

Post by Bob » Thu Mar 06, 2003 4:25 am

I think this cannot be done due to security reason. but I am just wondering if there is anyway to get over this? thank you.

I want to save the chart in applet as jpg in client's machine. thank you.

David Gilbert

Re: applet to jpg

Post by David Gilbert » Thu Mar 06, 2003 5:47 pm

Hi Bob,

I'm no applet guru, but I think that an untrusted applet won't be allowed to write the file. So you need to read up on signed applets, security policies etc to find out what you need to do so that it is allowed.

Maybe someone who has done something similar could outline the steps?

Regards,

Dave Gilbert

James

Re: applet to jpg

Post by James » Thu Mar 06, 2003 6:36 pm

If you use applet running with archive (jar file), you will need jarsigner to fix security problem. I had same problem before. Now it is fine. I will try to find more information later. You can look up java.sun.com and maybe it can help you.

Bob

Re: applet to jpg

Post by Bob » Thu Mar 06, 2003 9:38 pm

cool!! thank you!!

problem solved!!

step:
1) in dos screen, go to \jdk\bin, then type "keytool -genkey -alias Bob"
2) follow steps to enter information
3) then in DOS type "jarsigner -storepass bob bws.jar Bob" (jaraigner =program to run; bob=password; bws.jar=jar file; Bob= alias you create ealier)
4) then copy that *.jar to the webserver and run it

Locked