I was working from this example... zip stuff But you can see it scans the entire zip file and puts all the contents into a hashtable. I plan to use this in an applet, so obviously I don't want to have to load in every image at once, I rather just load them in as needed.
I'll bet you dollars for donuts that you're ignoring an exception here.
Jim's code does indeed do file I/O (which applets can't do without being signed, and not with files on the server to begin with). I don't think it'll work that way in an applet. The general outline might be something like:
and then work with the methods of ZipInputStream.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop