I have a singed Java applet that is embedded from in a HTML page. The applet has a method called SaveImage. The method downloads a file from a HTTP URL and writes it to local disk. All of this works fine if the method is invoked in the Paint event of the applet. I see the file written to my local hard disk.
If I invoke the same method (SaveImage) using Javascript on an event in the HTML page I get a Exception : access denied ("java.io.FilePermission" "c:\temp1\sri1969.jpg" "write") .

Not sure why it would work on paint but not when invoked from a javascipt .