This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "displaying pdf image" Watch "displaying pdf image" New topic
Author

displaying pdf image

cathymala louis
Ranch Hand

Joined: Nov 02, 2005
Posts: 77
Hi

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.


Thanks.
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: displaying pdf image
 
Similar Threads
Displaying byte array as image using javascript
forwarding to servlet
StringBuffer
calling an action through html:img tag
printing images in jsp