I am using sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage to 
decode a jpeg image but following error happens.
Does any one have experience?

java.lang.IllegalArgumentException: Raster IntegerInterleavedRaster: width =
1848 height = 2223 #Bands = 4 xOff = 0 yOff = 0 dataOffset[0] 0 is incompatible
with ColorModel DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff
amask=ffff0000
        at java.awt.image.BufferedImage.<init>(BufferedImage.java)
        at
sun.awt.image.codec.JPEGImageDecoderImpl.allocateDataBuffer(JPEGImageDecoderImpl
.java)
        at
sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(JPEGImageDecoderImpl.jav
a)
        at
sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(JPEGImageDecoderI
mpl.java)
[Message sent by forum member 'jiezhang' (jiezhang)]

http://forums.java.net/jive/thread.jspa?messageID=269797

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to