I have a scraped few images from a website. The scraper did not download the image files with the correct extension.
I changed one of the file's extension to
".jpg" and it opened in Picasa. So I wrote a Java program to change all downloaded image file extensions to
Now when I tried to open images in Java, using
Swing, it's not displaying the image. I am using this code to display. It is working fine with other images downloaded manually from web.
String path = "resources\\images\\"+gamePlayer.getName()+".jpg";
JLabel image = new JLabel(new ImageIcon(path));
I even tried converting image files to a different format by a third part software(Format Factory) but even it couldn't read the file.
I can open and view all the images in Picasa.
How do I display scraped images with incorrect extensions using