vendredi 28 mars 2014

Numbers of source Raster bands and source color space components do not match


Vote count:

0




Please help me.Any help would be worth. Right now I am getting strange exception





ERROR - Numbers of source Raster bands and source color space components do not match
java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match
at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:460)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1169)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1137)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1282)




Below is the code i used.Urgent help is required.


java.awt.image.BufferedImage image1 = javax.imageio.ImageIO.read(new File(root_url+"/Documents/SSOImage/"+linkInfo.get(FieldNames.IMAGE)));



asked 57 secs ago






Aucun commentaire:

Enregistrer un commentaire