Re: Accessing a local file
Posted By:
John_Zukowski
Posted On:
Thursday, June 28, 2001 01:44 PM
Breaking out of the Java sandbox to access the local file system is already covered in the FAQ.
Re: Accessing a local file
Posted By:
Abdul_Habra
Posted On:
Monday, June 25, 2001 07:18 PM
An applet, by default can not access the local disk files. The applet runs inside a "sand-box" that prevents it from accessing many computer resources.
If you must access a local file, there are two main options:
1. Certificates.
2. Policy file.
Each has its pros/cons.
Both are documented at Sun's web site.
Also, there is a quick introduction to working with policy files at:
www.tek271.com/articles/java_2_applet_security.htm