You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vaani <va...@gmail.com> on 2008/05/16 12:22:44 UTC

Display the Image from the Database

Hi i am new to struts...

how to display the  created image from database.i got the image in byte
array format. can any one tell me 
how to convert the byte array format into image format and display it using
struts.

Thanks in Advance

With Regards
vani


-- 
View this message in context: http://www.nabble.com/Display-the-Image-from-the-Database-tp17271603p17271603.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Display the Image from the Database

Posted by "Alberto A. Flores" <aa...@gmail.com>.
Please refer to:

http://struts.apache.org/2.0.11.1/docs/how-can-we-display-dynamic-or-static-images-that-can-be-provided-as-an-array-of-bytes.html

The search engine in the wiki is a pretty good tool :)

I actually found that method very useful.

Vaani wrote:
> Hi i am new to struts...
> 
> how to display the  created image from database.i got the image in byte
> array format. can any one tell me 
> how to convert the byte array format into image format and display it using
> struts.
> 
> Thanks in Advance
> 
> With Regards
> vani
> 
> 

-- 

Alberto A. Flores
http://www.linkedin.com/in/aflores



Re: Display the Image from the Database

Posted by Jay Bose <di...@yahoo.com>.
Vaani, try the Stream result type - http://struts.apache.org/2.x/docs/stream-result.html


--- Vaani <va...@gmail.com> wrote:

> 
> Hi i am new to struts...
> 
> how to display the  created image from database.i got the image in byte
> array format. can any one tell me 
> how to convert the byte array format into image format and display it using
> struts.
> 
> Thanks in Advance
> 
> With Regards
> vani



      

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