Trying to decode a bitmap file using ImageStorage.loadAll() result in an exception:
java.lang.RuntimeException: Unsupported BMP image: only 24 bit uncompressed BMP`s is supported
at com.sun.javafx.iio.bmp.BitmapInfoHeader.validate(BMPImageLoaderFactory.java:125)
at com.sun.javafx.iio.bmp.BitmapInfoHeader.<init>(BMPImageLoaderFactory.java:120)
at com.sun.javafx.iio.bmp.BMPImageLoader.readHeader(BMPImageLoaderFactory.java:158)
at com.sun.javafx.iio.bmp.BMPImageLoader.<init>(BMPImageLoaderFactory.java:150)
at com.sun.javafx.iio.bmp.BMPImageLoaderFactory.createImageLoader(BMPImageLoaderFactory.java:237)
at com.sun.javafx.iio.ImageStorage.getLoaderBySignature(ImageStorage.java:417)
at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:266)
java.lang.RuntimeException: Unsupported BMP image: only 24 bit uncompressed BMP`s is supported
at com.sun.javafx.iio.bmp.BitmapInfoHeader.validate(BMPImageLoaderFactory.java:125)
at com.sun.javafx.iio.bmp.BitmapInfoHeader.<init>(BMPImageLoaderFactory.java:120)
at com.sun.javafx.iio.bmp.BMPImageLoader.readHeader(BMPImageLoaderFactory.java:158)
at com.sun.javafx.iio.bmp.BMPImageLoader.<init>(BMPImageLoaderFactory.java:150)
at com.sun.javafx.iio.bmp.BMPImageLoaderFactory.createImageLoader(BMPImageLoaderFactory.java:237)
at com.sun.javafx.iio.ImageStorage.getLoaderBySignature(ImageStorage.java:417)
at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:266)
- blocks
-
JDK-8093018 An exception is thrown when loading https://www.paypal.com/us/webapps/mpp/home
- Resolved
- duplicates
-
JDK-8096640 we need to load 256 color grayscale and palette BMPs
- Resolved
- relates to
-
JDK-8098267 Implement BI_BITFIELDS BMP format support
- Resolved
-
JDK-8094229 BMPImageLoader fails to correctly load an image if the input stream read(byte[] b, int off, int len) method happens to return fewer than 'len' bytes
- Resolved
-
JDK-8096640 we need to load 256 color grayscale and palette BMPs
- Resolved