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 Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading a file to Database using commons file upload

 
Ramesh Etta
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can any one give me the link for tutorial that explains me how to upload file to datbase using Commons File Upload. I would be thankfull if you send me the code for that?

Thanks in advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33667
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh,
There are two steps to accomplishing your goal:
1) Upload file from browser to server. Apache Commons has the sample code for this part.
2) Store the file in the database. For this you need a BLOB which the JDBC tutorial has sample code for.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic