Thanks, Craig.
Sorry that I did not mention it specifically and made you confused. Here is what I
am trying to do. I have a servlet running on NT Server 4.0 with IIS 4.0 and Jrun.
This servlet will allow the clients to upload files and will have to save those
files on server side hard drive. I read the book, 'JAVA Servlet Programming' from
O'reilly. This book provide a nice class, MultipartRequest, which does parse
multipart/form-data. I could see that the servlet receive uploaded file, but I can
not save it somewhere in server that the servlet is running. I am looking for
specific class that saves file object to server's hard drive.
Thanks again.
"Craig R. McClanahan" wrote:
> "Seong Y. Kim" wrote:
>
> > Hi, all.
> >
> > I have read the book, JAVA Servlet Programming from O'reilly, specifically
> > about uploading files. I could understand how, but could not see how I can
> > save uploaded files to the diskette. Can anyone tell me how to save uploaded
> > files?
> >
> > Any kind of information will be appreciated.
> > Thanks.
> >
>
> On which machine is the diskette drive you want to save to? I think you might
> have the directions "upload" versus "download" confused. In the context of
> servlets, "upload" means copying the file from your local PC, through your web
> browser, to the server system where the servlets are running. (Could be the
> same physical machine, but that's not the usual case.)
>
> What the server does with the file depends totally on how you write the servlet
> that receives it. If you want to save it on a diskette drive connected to the
> server, make your upload servlet write to a file whose name is on that diskette
> -- just like you would from any other program (the name depends on what OS you
> are running, and where the diskette drive is mounted if it is a Unix system).
>
> If you want to save the file on your PCs diskette, then you don't need to upload
> at all -- the file is already on your system, so just use the normal tools.
--
*** Seong Y. Kim (Software Engineer)
*** Convergent Network Technologies, Inc.
*** 1420 Harbor Bay Parkway suite 281, Alameda, CA 94502
*** Tel: (510) 522-5077 x214, Fax: (510) 522-1228
___________________________________________________________________________
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