Table of Contents

TZippyWriter.AddStream Method

Adds an existing stream to the zip file. Note that this method will add the data of an existing stream, if you want to get a stream where you can write data and it will be added on the fly to the zip file, use Add(String) instead.

Syntax

Namespace: FlexCel.Core

public void AddStream(Stream aDataStream, String aNameOnZip, DateTime aFileDateTime, TCompressionMode CompressionMode)

Parameters

<-> Parameter Type Description
aDataStream Stream Stream with the data that you want to add to the zip file.
aNameOnZip String FileName for the new file inside the zip file. For information and remarks about it, see TZippyReader.GetFileName
aFileDateTime DateTime Date and time for the file that will be created inside the zip file.
CompressionMode TCompressionMode How the file will be stored. We support deflated and stored modes.
You can use stored to store files that are already compressed (like a png image), and deflated for the rest.

See also