Click to See Complete Forum and Search --> : Reading from remote directories


Toam
04-24-2005, 03:53 AM
I'm not sure if I can actually do what I want to do....

But what I want to do is have an applet on a webpage, which reads from files in the same directory.

I tried this some time ago and never worked it out, and just remembered and decided to ask here.

I originally started by using the standard file read methods but of course that didn't work because its not the same as reading a local file...

Is that doable with an applet?

Khalid Ali
04-24-2005, 08:04 AM
yes, however, its not as straight forward. One reason for Java to be so popular is that it has prety good security framework, which is that it works in a sand box environment.
Using applets to read / write files is possible but you will need to make sure that the client(browser) knows that it has the permissions to read/write, which is achieved by signing an applet.
do a google search for "signing java applets" and you shall get ton of results.

Toam
04-28-2005, 02:06 AM
Ok thanks.

I only need to read from files but I assume its the same deal