A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
reading a pdf file in a web application
Joined: Apr 13, 2009
May 03, 2009 11:39:41
i saved a
file in my database and want to have an idea about the method that allow me to open the file in a web appliction , how may i give in my
class the information that my file will be opened with the pdfreader?
thanks a lot.
Joined: Jan 01, 2009
May 03, 2009 12:08:51
1) Retrieve data using resultSet getBinaryStream( assuming its BLOB)
2) Write the data to the SerlvetOutputStream
3) Set the response content type to application/pdf
I agree. Here's the link:
subject: reading a pdf file in a web application
Passed IBM WebSphere Portal V5.0, Application Development Test 348
web application + print link
Embeding RTF on Web Page
preview of pdf files in browsers.
Read PDF File Path From Servlet. PDF is right under WebContent
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014