File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Reading a zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Reading a zip file" Watch "Reading a zip file" New topic

Reading a zip file

Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
I have a zip/jar file which has images. The zip file is in the same dir as my java class.
Question: How to open the zip/jar files to display the image file inside the zip/jar file.

The following line of code did not work.

I get an IO Exception.

Thank you
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

"Garandi Garandi",
It appears that you had a valid display name and have changed it to an invalid one. Either that or your display name has never been valid.

Either way, you need to correct this immediately or your account will be deleted. We take the naming rules quite seriously and 193 posts is unacceptable for an account having an invalid display name.

We require display names to be two words: your first name, a space, then your last name. Fictitious name are not allowed.

Please edit your profile immediately or your account will be deleted.

I agree. Here's the link:
subject: Reading a zip file
It's not a secret anymore!