Using non-seekable streams??

Mar 24, 2011 at 5:38 PM

I noticed that I can't use ZipStorer w/ an HttpResponseStream because I can't seek nor read position from that stream.  The main ZipStorer page talks about the "sequential-access-only" design of Zip files... wouldn't it be nice if we could write Zip files to sequential-only-access streams?

Jul 12, 2011 at 7:45 AM

Hi bill,

Sorry for the late response.

Although the zip format specification defines facilities for sequential-only streams, its implementation is very tricky and there is no guarantee that the zip read has the required fields property filled.

If the zeep is not too big, I suggest to read it entirely in memory or a temporary file before invoking ZipStorer.