Search Results for

    Show / Hide Table of Contents

    TZippyWriter.Add Method

    Overloads

    • TZippyWriter.Add(String)
    • TZippyWriter.Add(String, TCompressionMode)
    • TZippyWriter.Add(String, DateTime, TCompressionMode)

    TZippyWriter.Add(String)

    Creates a new file in the zip file, and returns a new stream where you can write data to it on the fly. If you just want to add an existing stream or file to the zip file, use AddFile or AddStream instead. Important: The stream returned is owned by this TZippyWriter object, and you shouldn't destroy it.

    Syntax

    Namespace: FlexCel.Core

    public Stream Add(String aFileName)

    Parameters

    <-> Parameter Type Description
    aFileName String FileName for the new file inside the zip file. For information and remarks about it, see TZippyReader.GetFileName

    See also

    • TZippyWriter

    TZippyWriter.Add(String, TCompressionMode)

    Creates a new file in the zip file, and returns a new stream where you can write data to it on the fly. If you just want to add an existing stream or file to the zip file, use AddFile or AddStream instead. Important: The stream returned is owned by this TZippyWriter object, and you shouldn't destroy it.

    Syntax

    Namespace: FlexCel.Core

    public Stream Add(String aFileName, TCompressionMode CompressionMode)

    Parameters

    <-> Parameter Type Description
    aFileName String FileName for the new file inside the zip file. For information and remarks about it, see TZippyReader.GetFileName
    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

    • TZippyWriter

    TZippyWriter.Add(String, DateTime, TCompressionMode)

    Creates a new file in the zip file, and returns a new stream where you can write data to it on the fly. If you just want to add an existing stream or file to the zip file, use AddFile or AddStream instead. Important: The stream returned is owned by this TZippyWriter object, and you shouldn't destroy it.

    Syntax

    Namespace: FlexCel.Core

    public Stream Add(String aFileName, DateTime aFileDateTime, TCompressionMode CompressionMode)

    Parameters

    <-> Parameter Type Description
    aFileName 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

    • TZippyWriter
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com