Check out example codes for "get image from resourcestream javafx". It will help you in understanding the concepts better.

Code Example 1

Image image = new Image("/path/to/your/resource/in/your/project");
ImageView imageView = new ImageView(image);

Code Example 2

URL url = getClass().getResource("/drawIcon.png");
Image image = ImageIO.read(url);

Learn ReactJs, React Native from akashmittal.com