This project is read-only.

from a memory stream to a zip memory stream?

Feb 7, 2008 at 4:49 AM

I need to create a zip archive from a number memory streams (or byte arrays) (one text file created on the fly and several photos read from a database). After I get the zip, the idea is to ftp it. Can DotNetZip create the zip in this way?

Feb 7, 2008 at 8:19 PM
No.... not directly.
The ZipEntry metaphor is tied to files. when creating a new zip, the content of the zip archive must originate in the filesystem.

If you have a bunch of stuff in memory, and want to create a zip, the easiest way to do it is to store those things individually into files in the filesystem and then zip all those files up.
You could sip it up into a zip archive that itself is stored in memory.

Then you can ftp the result (whether you stored it in the filesystem or not)

Feb 25, 2008 at 11:52 AM

DotNetZipLib is great. But i had also the requirement to build a archiv from streams.

Now i have used the sourcecode from DotNetZipLib an extend it with support for inputstreams.

@Cheeso: if you like to use the extension in your project please inform me.

Alternate i will publish the source in a separate project.

Bye from Germany,

Feb 27, 2008 at 3:44 PM
Edited Feb 27, 2008 at 3:45 PM
can I have a look at the class diagram or
can you describe to me the new methods and classes you've added?

maybe you could post as a work item and attach a zip file?
Feb 27, 2008 at 9:22 PM
I'm really interested in your solution as well DBedarf... I have the same requirements and would like to avoid coding a solution. Thx!
Feb 28, 2008 at 1:26 PM
Code is attached to issue 3640