Hi, I was trying to use OutputStream object in a JSP page. [Servlet Error]-[OutputStream already obtained]: java.lang.IllegalStateException: OutputStream already obtained
I have done opstream.flush() and opstream.close() before and after the usage resp.
I have to show up an image on a JSP which I get from a method which a Java API returns in byte[] format. That is the reason why I am using outputStream.
From Tony Morris's response in this thread, you need to ignore the second line.
However, as Bear suggests, this may not achieve what you want. The example in the thread describes how to send a TIFF image to the browser from a Servlet.
Jules
Hey cool! They got a blimp! But I have a tiny ad:
a bit of art, as a gift, the permaculture playing cards