capture of OutputStream of servlet

E

Edward

In a WebSphere application, I have a servlet that is called by a JSP
page that loads a derived image on the page. The image is created by a
third-party software that simply dumps the image to the OutputStream.

My question is, is there any way that I can capture the byte stream of
this image? I want to capture this image's byte stream and then send
it as a parameter to another servlet to load the image there as well.

Could I call the servlet within my server java code and then somehow
dump the result of the call into an InputStream? How about in my JSP
page? Could I put some <% %> code around the image and then store this
value in the session?

Sorry if I am asking a crazy question. I am just an old ASP developer
trying to adapt to java/WebSphere and keep myself employed!

Edward McMasters
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top