image in java fx code example
Example 1: javafx file to image
Image image = new Image("file:" + path); // "file:src/resource/photo.jpg"
Example 2: file to image javafx
Image image = new Image(new FileInputStream(selectedFile));
previewPicture.setImage(image);