Problem using ImageIO.read

后端 未结 3 1343
滥情空心
滥情空心 2021-02-13 19:45

Ok I have an Image that I\'m trying to read. Problem is that the Image.read(file) returns NULL.

File file = new File(\"C:\\\\images\\\\image1.jpg\");
if(file.exi         


        
3条回答
  •  时光说笑
    2021-02-13 19:56

    Awesome, I had the same problem, wherein it was supporting 24 image formats in eclipse but was supporting only 12 image formats in command prompt with maven. Once I placed jai_imageio.jar in maven's test path, maven has begun to support 24 image formats as well.

提交回复
热议问题