Solved

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

Posted on 2010-11-24
3
1,136 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 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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

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.
A solution for Fortify Path Manipulation.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

630 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