• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to upload a file along with form data to a database using servlet

 
visu Nekk
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have designed a form and using servlet i am sending form data to the database.now i have added one more field of input type=file and want to send the file along with the form data to the database.can anyone help me out.
[ September 06, 2005: Message edited by: visu Nekk ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seek multipart/form-data you do.

Here is one thread of 200 I found searching this forum.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15219
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the Apache Jakarta Commons FileUpload library to handle the request with the posted form data.
 
Neeraj Dheer
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or the O'Reilly Servlet package for file upload and other utilities.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic