File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Store PDF files in the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Store PDF files in the database" Watch "Store PDF files in the database" New topic
Author

Store PDF files in the database

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Hi all,

I have worked on a creating PDF files dynamically based on data in the DB. I now want to store the generated PDF file in the database. Any ideas on how I can go around this problem.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
You could use a field of type Blob, and use that to store the PDF as a byte array.


Ping & DNS - updated with new look and Ping home screen widget
Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Thanks a lot Ulf, I will try it now
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Store PDF files in the database
 
Similar Threads
Attaching Image files to store in Mysql
store pdf on file to another file
How to store images in MySQL DataBase
Creating a file from Various chunks of different files in java
write a bytearray to an oracle db