Decoding BMP file throws an exception

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u20
    • Affects Version/s: 8
    • Component/s: javafx
    • None
    • Environment:

      Linux x64, JDK8

      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)

        1. customerstatus2
          0.1 kB
          Peter Zhelezniakov
        2. listener2
          0.1 kB
          Peter Zhelezniakov

            Assignee:
            Vadim Pakhnushev
            Reporter:
            Peter Zhelezniakov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: