我通过buffererImage对象读取图像时遇到此异常 [英] I am getting this Exception while read an image through buffererImage object

查看:515
本文介绍了我通过buffererImage对象读取图像时遇到此异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

BufferedImage对象

---------------------------

2015- 12-08 12:23:59,815 INFO [STDOUT](http-172.18.102.16-9980-5)img BufferedImage @ 4617283c:type = 0 ColorModel:#pixelBits = 48 numComponents = 3 color space = java.awt.color.ICC_ColorSpace @ 7e6d52f2 transparency = 1有alpha = false isAlphaPre = false ShortInterleavedRaster:width = 120 height = 68 #numDataElements 3





异常

---------------

2015-12-08 12:23:59,816 ERROR [STDERR](http-172.18.102.16- 9980-5)javax.imageio.IIOException:非法的波段大小:应该是0< size< = 8

BufferedImage object
---------------------------
2015-12-08 12:23:59,815 INFO [STDOUT] (http-172.18.102.16-9980-5) img BufferedImage@4617283c: type = 0 ColorModel: #pixelBits = 48 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@7e6d52f2 transparency = 1 has alpha = false isAlphaPre = false ShortInterleavedRaster: width = 120 height = 68 #numDataElements 3


Exception
---------------
2015-12-08 12:23:59,816 ERROR [STDERR] (http-172.18.102.16-9980-5) javax.imageio.IIOException: Illegal band size: should be 0 < size <= 8

推荐答案

检查:

无法使用ImageIO.read(文件文件)读取JPEG图像[ ^ ]
Check:
Unable to read JPEG image using ImageIO.read(File file)[^]


这篇关于我通过buffererImage对象读取图像时遇到此异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆