No matter how you do it, you will need to request objects. If you
really don't want to query the database twice, use your session to store the
bytes for the image.
Randy
> -----Original Message-----
> From: Mehmet Ugur Kuzu (LinkPlus) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 3:31 PM
> To: 'Tomcat Users List'
> Subject: RE: BLOB FROM JSP PAGE
>
>
> but this means that i must create and send a second query to
> a database
> within in this servlet ,
> rather then this
> may be i can share my jsp page`s resultset to servlet,
> do you have any idea to achive this,
> sincerely,
> Ugur
>
>
>
>
> -----Original Message-----
> From: David Wall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 6:49 PM
> To: Tomcat Users List
> Subject: Re: BLOB FROM JSP PAGE
>
>
> > Is there a way to display images from database blob fields
> within only
> jsp,
> > i know that it is impossible because of you can not handle
> an another
> > outputstream
> > within jsp.
>
> Your JSP needs to output an IMG tag with a 'src' that points
> back to your
> application as another GET that will then return the image of
> interest.,
> generally from a simple servlet that sets the content-type to
> image/gif or
> whatever the image format is.
>
> David
>
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>