Pessoal, estou tentando atribuir meu file pra variável bufferedImage, mas está dando erro.
Segue abaixo o código.
zoomInButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event){
try {
String caminho = m_imageURL.toString();
URL u = new URL(caminho);
System.out.println("caminho = "+caminho);
File fileImg = new File(caminho);
BufferedImage image = ImageIO.read(fileImg);
showImageZoom(u, image);
}
catch (Exception e) {
System.out.println("DEBUG 0.6 = erro - "+e);
}
O erro que me dá é o seguinte: javax.imageio.IIOException: Can't read input file!
Alguém sabe por que está dando este erro?