This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Read file from package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Read file from package" Watch "Read file from package" New topic

Read file from package

Dorj Galaa
Ranch Hand

Joined: May 29, 2001
Posts: 113
I'm created package and package contained image file. but i can't download image from this package. how to load and read image file from package

Senior software engineer
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

We had a discussion (complete with sample code!) here.
I hope this is what you were looking for. It refers to locating a properties file in a package, but all files are simply "resources" so there is little change to finding images.
Dorj Galaa
Ranch Hand

Joined: May 29, 2001
Posts: 113
It is sorta covered in the JavaRanch Style Guide.
subject: Read file from package
jQuery in Action, 3rd edition