Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading a file to Database using commons file upload

 
Ramesh Etta
Ranch Hand
Posts: 47
  • 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: 34178
340
Eclipse IDE Java VI Editor
  • 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