Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to Read PDF file from database

Reply
Thread Tools

How to Read PDF file from database

 
 
sahm
Guest
Posts: n/a
 
      05-23-2010
Hi every One

Good Day

I make java app that insert PDF file to date base in blob
but now I could not read the file agean
any bady have any Idea to do this I will be thankfull

Best
Salim
 
Reply With Quote
 
 
 
 
Robert Kochem
Guest
Posts: n/a
 
      05-23-2010
sahm schrieb:

> I make java app that insert PDF file to date base in blob
> but now I could not read the file agean
> any bady have any Idea to do this I will be thankfull


You can call getBinaryStream(columnIndex) on the ResultSet object of your
query which gives you an InputStream. The InputStream can than be "feeded"
into the PDF parser you are using.

Robert
 
Reply With Quote
 
 
 
 
sahm
Guest
Posts: n/a
 
      05-23-2010
On May 23, 6:53*pm, Robert Kochem <rob...@mailueberfall.de> wrote:
> sahm schrieb:
>
> > I make java app that insert PDF file to date base in blob
> > but now I could not read the file agean
> > any bady have any Idea to do this I will be thankfull

>
> You can call getBinaryStream(columnIndex) on the ResultSet object of your
> query which gives you an InputStream. The InputStream can than be "feeded"
> into the PDF parser you are using.
>
> Robert


Hi Robert
Thank you for your replay
I tried many pdf library but it did not work very will
do you recommend any PDF library

Thank you agean
Best
Salim
 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      05-23-2010
sahm wrote:
> I tried many pdf library but it did not work very will
> do you recommend any PDF library


http://itextpdf.com/

--
Lew
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      05-24-2010
On Sun, 23 May 2010 11:13:57 -0700 (PDT), sahm <>
wrote, quoted or indirectly quoted someone who said :

>I tried many pdf library but it did not work very will
>do you recommend any PDF library


You first problem is to save and fetch the bytes of the PDF file. Make
sure are getting back exactly what you put in. Once you have solved
that, then work on rendering your PDF.

See http://mindprod.com/jgloss/pdf.html
--
Roedy Green Canadian Mind Products
http://mindprod.com

Beauty is our business.
~ Edsger Wybe Dijkstra (born: 1930-05-11 died: 2002-08-06 at age: 72)

Referring to computer science.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Postscript to PDF with pdf-tools, pdf-writer, or other Sean Nakasone Ruby 1 04-14-2008 09:13 PM
PDF::Writer, create pdf and insert in other pdf file. Ricardo Pog Ruby 1 03-26-2008 08:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57