I have a visual object in memory (not visualized).
I want to send it as a JPEG image to a web client (working with JSP, guys).
I already have the JPEGImage encoder:
Code:
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(pageContext.getResponse().getOutputStream());
How can I encode the visual objetc?
Maybe I'm looking the wrong direction. Any ideas?