import javax.imageio.*;
try
{
BufferedImage image= new BufferedImage();
image=(BufferedImage)ImageIO.read(new File("imaje.png"));
}
catch (Exception ex) {}
i hope i helped you
Message was edited by:
danjavatrix
Message was edited by:
danjavatrix
> i hope i helped you
No you didn't.
Your code has the biggest amount of errors I have ever seen for 2 lines of code.
It's much more simple:
BufferedImage image = ImageIO.read(new File(....));
If this doesn't work then you need to catch the Exception and figure out where the problem is.
Probably the path to the file is wrong.