how to use local path for reading images java fx code example
Example: file to image javafx
Image image = new Image(new FileInputStream(selectedFile));
previewPicture.setImage(image);
Image image = new Image(new FileInputStream(selectedFile));
previewPicture.setImage(image);