Why do I get a security exception when I use ".." in the path to try to get an image file?

John Zukowski

The SecurityManager considers going up a level from the code / document base to be providing access to something that you shouldn't have access to. Thus:

getImage(getDocumentBase(), "../foo.jpg");
is considered a security risk, and thus not permitted in an untrusted applet.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact