Solved

How to retreive PDF from BLOB and open the PDF in Java Struts application

Posted on 2010-11-24
3
1,131 Views
Last Modified: 2013-11-24
PDF saved in Oracle BLOB data type. How do I retrieve it and open new window to dispaly the PDF under the Struts Java applicatin.  And how to update/re-save a new PDF to that BLOB.
0
Comment
Question by:CHARLESCHU
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 34207325
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34209300
following shows you how to read the blob

http://helpdesk.objects.com.au/java/how-do-i-convert-a-blob-to-a-byte-array

you to display it you need a servlet to return the pdf similiar to how you return an image

http://helpdesk.objects.com.au/java/how-can-i-return-an-image-using-a-servlet
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34229353
You don't want to be reading into memory any longer than necessary, so that's a poor solution
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb wildfly example 2 113
ejb on wildfly 5 64
String array comparison 4 58
mysql jsp example issue 32 96
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question