编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录

ImageIO.read()读取图片异常Unsupported Image Type_exception Unsupported Image Type

java | 2020-08-27 09:55:10

ImageIO.read 在读取某个图片的时候报错 :

javax.imageio.IIOException: Unsupported Image Type_exception Unsupported Image Type

在maven项目中增加依赖可以解决

<dependency>
	<groupId>com.twelvemonkeys.imageio</groupId>
	<artifactId>imageio-jpeg</artifactId>
	<version>3.3.2</version>
</dependency>

 

登录后即可回复 登录 | 注册
    
相关文章
kafka 异常 exception thrown when sending a message with key= null php 预定义异常 exceptionphp errorexception 构造一个异常(exception)php exception 异常克隆php exception 异常构造函数php exception 获取异常代码php exception 创建异常时的程序文件名称php exception 获取异常追踪信息php exception 获取字符串类型的异常追踪信息php exception 将异常对象转换为字符串php gmagick gets the potential image typephp gmagick sets the image typephp ktaglib id3v2 attachedpictureframe returns the type of the imagephp ktaglib id3v2 attachedpictureframe set the type of the imagephp imagick gets the current image s compression typephp imagick gets the potential image typephp imagick 从二进制字符串里读取图片php imagick sets the image typephp yar server exception 获取异常的原始类型ImageIO.read()读取图片异常Unsupported Image Type_exception Unsupported Image Type
关注编程学问公众号
编程学问网 湘ICP备20001732号