Look at the ImageIO class. It has methods for reading image files.