Applets reading files on originating host

Duncan Bates (66975425@doc.mmu.ac.uk)
Wed, 25 Jun 1997 12:47:49 +0100

Date: Wed, 25 Jun 1997 12:47:49 +0100
From: Duncan Bates <66975425@doc.mmu.ac.uk>
To: java-security@web2.javasoft.com
Subject: Applets reading files on originating host

Is it possible for an applet, displayed in a browser (Netscape Navigator
2.0 -> ) to read a data file off the originating host. I am trying to
write a Java applet which reads a file from the HTML directory from
which the html file containing the applet tags originates. I understood
that this was possible, although I realise that applets cannot read
local (client-side) files for security reasons.

I am consistently getting security exception errors. The method I am
trying to use is declare a URL object for the relevant file, open up a
URLConnection and then an InputStream. The error seems to occur when I
try to get an InputStream.

I hope you can help me, as I am tearing my hair out with this one. I
look forward to your reply

Duncan Bates (66975425@doc.mmu.ac.uk)