This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Upload pdf file to mysql database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Upload pdf file to mysql database" Watch "Upload pdf file to mysql database" New topic
Author

Upload pdf file to mysql database

Laxmikant Kumbhare
Ranch Hand

Joined: Sep 19, 2011
Posts: 38
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Jan 10, 2002
Posts: 60767
    
  65

See the JspFaq for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload pdf file to mysql database
 
Similar Threads
uploading csv file into mysql database using jsp
how to upload a file usiing jsp/servlets
How Upload Image to DataBase
Want a suggestion regarding upload and save in database using struts 2.0
Uploading xml to database