On Thu, 24 Jan 2002, Mehmet Ugur Kuzu (LinkPlus) wrote:
> Date: Thu, 24 Jan 2002 22:30:44 +0200
> From: "Mehmet Ugur Kuzu (LinkPlus)" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> 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,
Even if you used a servlet, you cannot mix text output (the HTML of your
page) and the binary image data in the same response. You would need to
create an <img> link that points at a servlet to return the binary image
data (which the browser will submit as a second request, in the usual
way).
If you don't want to do two database accesses, you can always save the
image data in the user's session so that the second request sees it there
already.
> sincerely,
> Ugur
>
Craig
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>