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.
applet to jpg
Re: applet to jpg
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
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
Re: applet to jpg
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.
Re: applet to jpg
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
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