1

Closed

Allow app to deliver input stream before writing an entry to the archive

description

on behalf of webbes...
Hi guys,
 
This library seems to do pretty much what I need but I'm wondering if the next thing is possible with it:
 
I have a hundred files in my database which I would like to stream into a zip file. But in the remarks I read that if I would like to add a file as a stream, my stream must remained open until the save method is called. This means I need to open 100 simultanious connections to my database for just one request actually. Not only my connection pool is drained out, but I'm getting table locks instead of row locks eventually.
 
Is it possible to stream contents to the zipfile immediately, without waiting for the Save method being called? Cause than I can do with just one connection.
 
Cheers,
Wes
Closed Mar 5, 2009 at 10:30 PM by Cheeso
implemented in changeset 29768. First available in v1.8.1.11.

comments

Cheeso wrote Mar 4, 2009 at 7:22 PM

a first-cut design is implemented in changeset 29749. Available in v1.8.1.9 binary release. I'm leaving this issue open because we may need to tweak the design, and I want to invite comments.