简体   繁体   中英

Java Exception: New BMP version not implemented yet

I converted image with help of GIMP to RGB565. Now I want to read this bmp-image in java:

BufferedImage bufImg = ImageIO.read(imagePathFile);

but it throws exception:

java.lang.RuntimeException: New BMP version not implemented yet

What should I do to read this image?

You could try JAI or Apache Sanselan .

Note that JAI requires some native libraries to be plugged into the JVM whereas Sanselan won't read JPEG images and thus requires you to fall back to ImageIO or even JPEGImageDecoder for those.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM