Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096936

Decoding BMP file throws an exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u20
    • 8
    • javafx
    • None
    • Linux x64, JDK8

    Description

      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)

      Attachments

        1. customerstatus2
          0.1 kB
        2. listener2
          0.1 kB

        Issue Links

          Activity

            People

              vadim Vadim Pakhnushev
              peterz Peter Zhelezniakov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: