AffineTransform transform = new AffineTransform();
BufferedImage bis = ImageIO.read(url);
我用读取了一个.jpg的图片抛异常:
javax.imageio.IIOException: Invalid JPEG file structure: two SOI markers
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1049)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:864)
at javax.imageio.ImageIO.read(ImageIO.java:1400)
at javax.imageio.ImageIO.read(ImageIO.java:1286)
不知道为什么?别的.jpg图片就可以,就有几张不可以!!!
------解决方案--------------------
自己顶一下