2 Replies Latest reply on Apr 22, 2010 5:15 PM by darrylburke

    How to implement Progressive Imaging

    843802
      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();