At present, this is the situation I can notice:

I need to load images, sounds and texts from the disk of the original
server (the one I run the applet from, the one there is the web page in, OK?).

Using an "internal address", viz a parameter in the html, as in the following:

in html
  <applet code=XYZApp.class width=300 height=300>
<param name=model value=models/file.txt>

and in Applets
InputStream is = new URL(getDocumentBase(), getParameter(name)).openStream();
or
Image im = getImage(getDocumentBase(), getParameter(name));

I am able to get sounds and texts with
HOtjava 3.0 and IE 4.0, but NOT with netscape 4.5!

As per images, ONLY IE 4.0 is able to load them without throwing security
exceptions.

I don't understand why there could be security limitations in reading (I am
not talking about writing) from the original server some data!

Thanks for any help.

At 19.19 10/03/00 -0800, you wrote:
>Yes you can. I have successfully done it in the past. Make sure that the
>security levels set for your browser are at the min levels, just to test that
>this is not your problem.
>
>
>Stefano Scarpanti wrote:
>
>> Hi all,
>> does anybody kno whether an applet can read anything from a file or it is
>> always thrown a security exception?
>>
>> ===========================================================================
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>> [EMAIL PROTECTED] and include in the body of the message "help".
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to