• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Archiving Files in zip files

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 archive
  • Extract a particular entry with the specified name
  • Open 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!
     
    Run away! Run away! Here, take this tiny ad with you:
    Smokeless wood heat with a rocket mass heater
    https://woodheat.net
    reply
      Bookmark Topic Watch Topic
    • New Topic