Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

RE: read/display image from Database using struts

Mano Chinthaka Dasanayaka

2006-12-18

Replies:

Hi kranti,

You have to use BLOB's to store images in the DB..


Get the Out Stream from the BLOB and then write the byte[] to it..

http://wiki.apache.org/struts/StrutsFileUpload


Regards,
Mano

-----Original Message-----
From: Kranti [mailto:kranti.j2ee@(protected)]
Sent: Monday, December 18, 2006 2:21 PM
To: Struts Users Mailing List
Subject: read/display image from Database using struts

Hi,

How should I read/display image from Database...which is stored interms of
bytes in the Database.

Please suggest me some way to render the image in JSP.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.