You don't have to use a URL. Accessing a file can be as simple as
File tempFile = new File( "C:\whatever\file.ext");
String file = tempFile.getCanonicalPath().toString();
FileInputStream fis = new FileInputStream( file);
Cheers!
Mark
----- Original Message -----
> On Tue, 4 Dec 2001 21:22:32 +0200, Costin L. <[EMAIL PROTECTED]> wrote:
>
> I have a problem regarding output/input streams in the servlet
>enviroment. The problem I have is that, when you want to read something
from
>a file(locally for example) you have to make a URL or use the
getRealPath().
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html