o que há de errado com o seguinte trecho do meu código ?
public static void retorna(BufferedImage bufImage) throws IOException {
// String file = new String("test.png");
// setTfFoto(bufImage);
Image image = null;
SwingFXUtils.toFXImage(bufImage, (WritableImage) image);
//SwingFXUtils.toFXImage(bufImage, image);
tfFoto.setImage(image);
System.out.println("imprimiu a foto na tela");
}
tfFoto é um ImageView criado usando FXML porém não consigo de forma alguma receber esse BufferedImage de outro metodo e faze-lo aparecer em minha interface.
Alguem poderia me ajudar ?