Hi,
I have the exact same problem with the project I'm working on. Our
legacy code uses the OutputStream quite a bit and now we want to integrate
JSP into our existing project which means we have to change over to
PrintWriter. Please let me know if you do find a solution for this.
Thank you.
- Jim
On Wed, 24 Mar 1999, Jianjun Xu wrote:
> Hi, All
>
> I am trying to output an image to the browser directly using =
> OutputStream. This worked fine in a servlet with an ServletOutputStream.
>
> However, when I tried to do the same thing in JSP, I cann't find a way =
> to get the OutputStream. The default (predefined) out is a PrintWriter , =
> which can only handle ASCII , and out can not be redefined as =
> ServletOutputStream, because the PrintWriter has already read the =
> "response" , it's a mess.
>
> So, is there a solution?=20
>
> Thanks
>
> Jianjun
>
------------------------------------------------------------------------
Jim Tsang Phone: (510) 628-0100
Scientific Applications Specialist Fax: (510) 628-0108
Pangea Systems Inc. email: [EMAIL PROTECTED]
1999 Harrison Street, Suite 1100 URL: http://www.panbio.com
Oakland, CA 94612
------------------------------------------------------------------------
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".