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

Decoding BMP file throws an exception

    XMLWordPrintable

    Details

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

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: