p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   JSP Basics (http://p2p.wrox.com/forumdisplay.php?f=92)
-   -   display byte array of jpeg in jsp (http://p2p.wrox.com/showthread.php?t=60938)

mahendra.w August 8th, 2007 09:40 AM

display byte array of jpeg in jsp
 
Hi All,please give me your solution, thanks.

i have a dvo where it consist of byte array of a picture. while trying to display on jsp ,i could not get the picture.
here is the code i tried

 response.setContentType("image/jpeg");
 OutputStream outSt = response.getOutputStream();
 outSt.write(loDocumentDVO.getFileContents());
  // where loDocumentDVO.getFileContents() consist of byte array
 outSt.flush();
 outSt.close();

iamrakesh22 September 4th, 2007 06:53 AM

For people who are looking for solutions of this kind
http://forum.java.sun.com/thread.jspa?threadID=5204277


- Rakesh


All times are GMT -4. The time now is 03:57 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.