Creating a Zip File with Multiple Entries

To stream multiple XML files directly into the zip file, use the OpenWriter method. That returns a stream that you can write to, and when the stream is closed it is added to the zip file.

Add the following code to the Click event:

      Visual Basic

      C#

To read an entry without saving it to a file, use the OpenReader method on the entry object.

Note: OpenWriter is a member of the C1ZipEntryCollection class, while OpenReader is a member of the C1ZipEntry class.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.