问题描述
InputStreamimgContent=HttpClientUtils.sendGetAsStream(jo.getString("url"),httpClient);ByteArrayOutputStreamoutStream=newByteArrayOutputStream();byte[]con=newbyte[4096];intcount=-1;while((count=imgContent.read(con,0,4096))!=-1){outStream.write(con,0,count);}写了这样一段代码然后报了这样的错误javax.imageio.IIOException:BogusHuffmantabledefinitionatcom.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(NativeMethod)atcom.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1137)atcom.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948)atjavax.imageio.ImageIO.read(ImageIO.java:1422)atjavax.imageio.ImageIO.read(ImageIO.java:1326)应该有huffman图片不能解析造成的,请问这个应该怎么处理
解决方案
解决方案二:
有没有人帮忙解决下
时间: 2025-01-03 16:00:56