Originally posted by Wael Atef:
Hi all,
i write a program that generates as output a set of images and pdf files.Actually i store these files in separate directories one for images and one for pdf files.i want know to archive these files in zip files so that i can later extract each file from the archive so i can view it to the user in adobe reader.the zip utility in java provide a facility to get InputStream to each entry in zip file but i want really is the actual file from the zip so i can view it in adobe reader.anyone can give me an idea how that can be performed.
I assume that what you wish to achieve is through the following process:
Output from first application:
Put all of the files in the two directories as entries into a single zip file. Input back into the application at a later time:
Open the zip archiveExtract a particular entry with the specified nameOpen this file in the appropriate native program (e.g. Acrobat reader) If these stages are correct, I think I can help you, but I feel that your question needs a little clarification for a more succinct answer!
Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / Amazon Amazon UK )