Contents - Index


OnGetNextTStream event

 

Applies to

TVCLZip component

 

Declaration

property OnGetNextTStream: TOnGetNextTStreamEvent;

 

Description

 

NOTE: This event is only defined, and only needed, for D4, D5, BCB4, and BCB5. (The method you should use for D6, D7, and BCB6 is OnGetNextStream ) OnGetNextTStream allows you to pass in TStreams instead of TkpHugeStreams.  This is a convenience event to make it easier for these versions of Delphi/BCB to work with TStreams.  Just keep in mind that this means that the stream passed in cannot be larger than 2 gigs in size since in these versions of Delphi/BCB, TStreams cannot handle sizes greater than 2 gig.

 

This event allows you to pass in additional streams to be zipped when calling ZipFromStream. If this is not defined, then ZipFromStream will only zip one stream.  This event makes it much more efficient to zip multiple streams into one archive because it does it all in one process.  The alternative is to call ZipFromStream multiple times which results in modifying an existing archive for all but the first call to ZipFromStream.  This would mean that the zip file is recreated each time.