Java exception: new BMP version not yet implemented

I converted the image using GIMP to RGB565. Now I want to read this BMP image in java:

BufferedImage bufImg = ImageIO.read(imagePathFile); 

but it throws an exception:

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

What should I do to read this image?

+4
source share
1 answer

You can try JAI or Apache Sanselan ,

Note that JAI requires some built-in libraries to be connected to the JVM, while Sanselan will not read JPEG images and therefore requires you to return to ImageIO or even JPEGImageDecoder for them.

+1
source

Source: https://habr.com/ru/post/1383817/


All Articles