aspose file tools*
The moose likes JDBC and the fly likes How to store and retrieve PDF files for Access Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to store and retrieve PDF files for Access Database" Watch "How to store and retrieve PDF files for Access Database" New topic
Author

How to store and retrieve PDF files for Access Database

Clara Hall
Greenhorn

Joined: Nov 24, 2001
Posts: 16
Hi,
I need to develop a system in which the client can send a file (pdf, doc, ppt, ps, etc) to the servlet, the servlet gets the file and stores it in a database. When the client request the file, the servlet need to get the file from the database and then send it to the client. And the client use applet.
Now the question is what kind of type should I define for the file? Will Blob do the work? If so, how to do it? Thank you.
Clara
Brent Worden
Ranch Hand

Joined: Nov 26, 2001
Posts: 50
To upload your file, look into using the MultipartRequest from http://www.servlets.com/cos/index.html.
To store your file, a BLOB should be suffecient.

------------------
Brent Worden
http://www.brent.worden.org/


Brent Worden
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to store and retrieve PDF files for Access Database