I am trying to get a JPEG in a BufferedImage to display on a JPanel . However, javax.imageio.ImageIO.read() seems very fussy about the JPEG processes it processes, often throwing an IIOException . The same JPEG files are perfectly visible in any image reading application that you would like to name.
I looked at Apache Sanselan and JAI . But Sanselan cannot handle JPEG, and JAI is not available for 64-bit Windows platforms and seems not to be supported (the last update was in 2006). The previous https://stackoverflow.com/a/166268/combination/questions/245552/ ... suggested com.sun.image.codec.jpeg.JPEGCodec , but this was deprecated in Java 5 and disappeared in 7.
Are these my only options? Are there really no Java libraries capable of efficiently reading JPEG files in BufferedImage ?
source share