File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying pdf image

 
cathymala louis
Ranch Hand
Posts: 77
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic