This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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: 42047
    
  64
You could use a field of type Blob, and use that to store the PDF as a byte array.


Ping & DNS - my free Android networking tools app
Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Thanks a lot Ulf, I will try it now
 
GeeCON Prague 2014
 
subject: Store PDF files in the database