4 Replies Latest reply: Mar 13, 2007 7:01 AM by mlk RSS

    How o convert BufferedImage object to byte[]

    807606
      Hi,

      I am getting ClasscaseException.
      BufferedImageOp op=new AffineTransformOp(AffineTransform.getScaleInstance(scalex_width,scalex_width),null);
                im=op.filter(im,null);
                Raster raster = im.getData();
                DataBufferByte ddb = (DataBufferByte)raster.getDataBuffer();
                output = ddb.getData();