You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ondrej Svetlik <on...@svetlik.info> on 2006/06/01 19:15:56 UTC

Output an image

Hello all,

I have image data in the database and want to simply send them out with 
propper mime type. Is there a way to do it using JSF?

Best regards

Ondrej Svetlik

Re: Output an image

Posted by Mert Çalışkan <mc...@gmail.com>.
favor phaselisteners over servlets..

http://www.nabble.com/Render-an-Image-t1395334.html#a3811978

Regards,

Mert



On 6/2/06, Mads Henderson <ma...@gmail.com> wrote:
>
> I think you need to create a servlet that outputs the image. You can then
> use the servlet url in you h:graphicimage tag
>
> Hope that helps
> Mads
>
> On 6/1/06, Ondrej Svetlik <on...@svetlik.info> wrote:
> >
> > Hello all,
> >
> > I have image data in the database and want to simply send them out with
> > propper mime type. Is there a way to do it using JSF?
> >
> > Best regards
> >
> > Ondrej Svetlik
> >
>
>
>

Re: Output an image

Posted by Cagatay Civici <ca...@gmail.com>.
Or a phaselistener,

http://www.jroller.com/page/cagataycivici?entry=phaselistener_renders_an_image_no

Cagatay

On 6/2/06, Mads Henderson <ma...@gmail.com> wrote:
>
> I think you need to create a servlet that outputs the image. You can then
> use the servlet url in you h:graphicimage tag
>
> Hope that helps
> Mads
>
>
> On 6/1/06, Ondrej Svetlik <on...@svetlik.info> wrote:
> >
> > Hello all,
> >
> > I have image data in the database and want to simply send them out with
> > propper mime type. Is there a way to do it using JSF?
> >
> > Best regards
> >
> > Ondrej Svetlik
> >
>
>

Re: Output an image

Posted by Mads Henderson <ma...@gmail.com>.
I think you need to create a servlet that outputs the image. You can then
use the servlet url in you h:graphicimage tag

Hope that helps
Mads

On 6/1/06, Ondrej Svetlik <on...@svetlik.info> wrote:
>
> Hello all,
>
> I have image data in the database and want to simply send them out with
> propper mime type. Is there a way to do it using JSF?
>
> Best regards
>
> Ondrej Svetlik
>