struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Kazakevich" <Ilya.Kazakev...@JetBrains.com>
Subject RE: Displaying images from database (BLOB) using the <img> tag
Date Mon, 16 May 2011 16:41:04 GMT
You need action (or servlet) that will read image from db and write image to
the output stream setting appropriate conent-type.
Than you do: <img src="my.action"/>


 


Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"

-----Original Message-----
From: Saeed Najahi [mailto:najahi88@gmail.com] 
Sent: Monday, May 16, 2011 7:48 PM
To: user@struts.apache.org
Subject: Displaying images from database (BLOB) using the <img> tag

hello guys, can anyone kindly tell me how can i display an image fetched
from a database using the <img> tag? thanks in advance.

-- 
----------------------------------------------------------------------------
----------------------------
`*The early bird catches the worm, but the second mouse gets the cheese..*`

*NAJAHI Saïd* (* KyouJin-SaMa* )
4ème année G.Info E.N.S.A.Safi
----------------------------------------------------------------------------
-


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message