Jay Kandy
Posts: 77
Nickname: jay
Registered: Mar, 2002
|
|
Re: Java Image processing and Servlets
|
Posted: Aug 12, 2002 6:36 AM
|
|
Mathur,
Heres what you need to do:
You said you have code to "manipulate" images. My guess is since images are binary, you write to an OutputStream to display on the screen (using a Panel or a container).
What you need to do is, set this stream to servlet's stream:
OutputStream ostream = response.getOutputStream();
get the stream and draw onto it.
and set the content type as the image type. For example, if you draw a PNG, response.setContentType("image/png");
If you posted a piece of code, it would be easy to show!
Jay
|
|