• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload pdf file to mysql database

 
Laxmikant Kumbhare
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application i need to upload a PDF file to Mysql database. Please help me!

tell me datatype for column in mysql

and complete procedure in jsp

Thanks in advance!
 
Tim Moores
Bartender
Posts: 2946
46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PDFs are binary data, so you'd use a BLOB field. Having to do with I/O and DB operations, you wouldn't do this in a JSP, but in a servlet. A package like Apache Commons FileUpload makes the file upload part quite easy.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JspFaq for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic