Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Loading images from zip files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Loading images from zip files" Watch "Loading images from zip files" New topic

Loading images from zip files

Jeff Smith
Ranch Hand

Joined: May 04, 2001
Posts: 50
I'm trying to create a partially skinnable program and I want to have the images loaded from a zip file. I've read through the classes in the package but I just can't seem to get anything to work. Are there any good examples of how to read an image from a zip file out there? I really don't know what I'm doing wrong; I can get text files from zip files, but not GIF and JPG images???
Any help would be greatly appreciated.
Matt Siegel
Ranch Hand

Joined: Jul 18, 2000
Posts: 55
Here's a recent article from Sun's site that may help your cause.
Jeff Smith
Ranch Hand

Joined: May 04, 2001
Posts: 50
Thanks, that's exactly what I needed
I agree. Here's the link:
subject: Loading images from zip files
Similar Threads
how does JSP get an image created from a servlet ?
Archiving Files in zip files
GZipInputStream & ZipInputStream?
Merged files? (can't think of a better name)