File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file upload and download

 
Hardy Chou
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic