Hello,

On Thu, 22 Mar 2001, Leyland Needham wrote:

> > The VRML Loader is not permitted to load files from my harddrive (maybe
> from the
> > client's computer also) I haven't tested it on the internet.Only through my
> > computer!)
>
> That is a good question, that I will have to cross when I get there...
>
> Are you using Strings or URLs when passing the file name? Im not sure but
> there may be some Java documention that covers how to access local files as a
> URL.

Yes, try:

String filename = "filename" ;
File f = new File(filename) ;
URL url = f.toURL() ;

hope this avoid security problems

regards,
Fabrizio Nunnari

--
http://digilander.iol.it/fnunnari

   Fabrizio Nunnari <[EMAIL PROTECTED]>
 -Student at Computer Science Department of Turin (Italy)-
Voodoo Chile of DeGeNeRaTiOn  for the Amiga scene --> Coder

===========================================================================
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