Check out example codes for "java load image". It will help you in understanding the concepts better.

Code Example 1

BufferedImage img = null;

try 
{
    img = ImageIO.read(new File("C:/ImageTest/pic2.jpg")); // eventually C:\\ImageTest\\pic2.jpg
} 
catch (IOException e) 
{
    e.printStackTrace();
}

Learn ReactJs, React Native from akashmittal.com