*
The moose likes Java in General and the fly likes file upload and download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "file upload and download" Watch "file upload and download" New topic
Author

file upload and download

Hardy Chou
Greenhorn

Joined: Jun 27, 2001
Posts: 27
Does anyone know how to do this using jsp/servlet...
<FORM METHOD="POST" ACTION="servlet/uploadServlet" ENCTYPE="multipart/form-data">
Upload :
<INPUT TYPE="FILE" NAME="SRC" SIZE="50">

<INPUT TYPE="FILE" NAME="SRC" SIZE="50">

<INPUT TYPE="SUBMIT" VALUE="Upload">
</FORM>
AND using servlet to save it to the server(i don't know how to do this) and update my database(this part i already know)
AND I don't know how to download...from a server using servlet/jsp...
Thank you very much.
Regards,
Hardy Usman
SAFROLE M3
Greenhorn

Joined: Jun 28, 2001
Posts: 18
You need to use multi-part HTTP requests. Check the following link and download the first ZIP package. It contains a class named MultipartRequest, or something like that, that you can use from your servlet to perform the file upload.
http://www.servlets.com/cos/index.html
SAF
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file upload and download
 
Similar Threads
To make file upload using JSP
File upload and download
File Upload from form
How to Upload the Client File To The Server
mutipart/form-data