Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying pdf image

 
cathymala louis
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1) No. (or not easy)
(2) Yes. ( some work of Javascript to open a new window to display PDF file).
 
Albin Joseph
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can keep your array of bytes in session and from the next page retrieve this value and display it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic