File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes displaying pdf image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "displaying pdf image" Watch "displaying pdf image" New topic

displaying pdf image

cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77

I am getting byte array of images from session bean and I display that image in pdf format. It works fine in java. My problem is when i click the hyper link associated with the number the byte array of images displaying in the same page. I want the images to displayed in the next page, I want to know

1. Is it possible to transfer the byte array to the next jsp page, If so how will i display the byte array.
2. is there is any way to display the image in new browser.

Jason Liao
Ranch Hand

Joined: Jun 17, 2005
Posts: 59
(1) No. (or not easy)
(2) Yes. ( some work of Javascript to open a new window to display PDF file).
Albin Joseph

Joined: Jan 22, 2005
Posts: 21
You can keep your array of bytes in session and from the next page retrieve this value and display it.

Java source code examples | Java coding community.
I agree. Here's the link:
subject: displaying pdf image
It's not a secret anymore!