• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieving images from a folder

 
Nacho Hmar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I'm trying out a program which requires accessing of the images from a folder, and i'm not so familiar with files. Can you show me how???
Thanks a ton
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might start by reading about file I/O in the Sun Java Tutorial. Note that images are binary data, not text, so you'll be working with streams (and not Readers/Writers).

If you need to work with the actual image data, then the javax.imageio.ImageIO.read method can create a BufferedImage from a file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!