This discussion is archived
2 Replies Latest reply: Apr 22, 2010 10:15 AM by DarrylBurke RSS

How to implement Progressive Imaging

843802 Newbie
Currently Being Moderated
Hi, I'm sending a large image from one place to another
If the image is large, it only is available to draw once fully downloaded.
I want to allow progressive imaging, but don't know how or where to look to find out

I guess its somewhere in the javaio package, or possibly in JAI

can someone point me to some example code

currently to write images (ready to send) I use:
RenderedImage renderedImage = ....my image;
ByteArrayOutputStream baos=new ByteArrayOutputStream(1000);
ImageIO.write(renderedImage, "jpg", baos);
baos.flush();
byte[] imageBytes = baos.toByteArray();