A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
I/O and Streams
store pdf on file to another file
Joined: Apr 02, 2009
Apr 02, 2009 01:20:22
Actually my problem is I want to store the
file in database as a blob.and i want to retrieve the pdf file ,how can i do ?
Joined: Mar 22, 2005
Apr 02, 2009 01:57:41
Welcome to JavaRanch.
The general approach would be to read the file into a byte (using the
class), and then use that with the Blob and PreparedStatement classes for inserting it into the DB.
For retrieving it from the DB you'd call ResultSet.getBlob, and then use
to store it in a file.
I agree. Here's the link:
subject: store pdf on file to another file
running another application from java
Creating a file from Various chunks of different files in java
PDF to database
How to store the PDF file in the server side?
Store PDF files in the database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014