BufferedImage strawImage = ImageIO.read(new File("strawberry.jpg"));
if(strawImage == null) System.out.println ("Image jpg read error");
BufferedImage appleImage = ImageIO.read(new File("apple.bmp"));
if(appleImage == null) System.out.println ("Image bmp read error");
it returns "Image bmp read error", which means it read the jpg, but not the bmp. I tried displaying them as Frame, and jpg shows up well, while bmp doesn't.
Does anyone know why?


