java.lang.IllegalArgumentException: Invalid magic value for BMP file.

Coderanch | addy sharma | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    how to create an image through bufferedimage,image and other helper class using byte array

    Coderanch | 5 years ago | addy sharma
    java.lang.IllegalArgumentException: Invalid magic value for BMP file.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid magic value for BMP file.

      at com.sun.imageio.plugins.bmp.BMPImageReader.readHeader()
    2. Java RT
      BMPImageReader.read
      1. com.sun.imageio.plugins.bmp.BMPImageReader.readHeader(Unknown Source)
      2. com.sun.imageio.plugins.bmp.BMPImageReader.read(Unknown Source)
      2 frames
    3. Unknown
      rd.main
      1. rd.main(rd.java:138)
      1 frame