Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSPWriter to stream

843836Jul 31 2003 — edited Jan 15 2009
Hi!
I have a page that displays a picture. (image/pjpeg)

The problem is that I have the picturedata as a byte[] and the standard out (a JSPWriter) doesn't support byte[].

I tried to get the java.io.OutputStream calling response.getOutputStream() but that call throws an execption about it already have been called once.

So, my question, how do I write my byte[] in a jsp-page without have to catch a lot of errors.

Thanks in advance
Roland Carlsson

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2009
Added on Jul 31 2003
8 comments
1,579 views