Sending Binary Information Example
Sending a dynamically produced image:
A
DynamicImage
servlet.
Sets content type to
image/jpeg
,
Draws a
BufferedImage
,
Gets a response output stream,
Wraps the stream in a
JPEGImageEncoder
, and
Gives the output stream to the encoder.
http://redrock.d.umn.edu:8081/jspbook/DynamicImage