Xceed Real-Time Zip for .NET Documentation
Xceed.Zip Assembly / Xceed.Zip.ReaderWriter Namespace / ZipWriter Class / WriteItemData Method / WriteItemData(Stream,Int32) Method
A System.IO.Stream object.
The amount of bytes to be copied in each loop iteration.


In This Topic
    WriteItemData(Stream,Int32) Method
    In This Topic
    Writes the entire contents of a stream to the ZipWriter object's stream.
    Syntax
    'Declaration
     
    Public Overloads Function WriteItemData( _
       ByVal itemData As Stream, _
       ByVal bufferSize As Integer _
    ) As Long
    'Usage
     
    Dim instance As ZipWriter
    Dim itemData As Stream
    Dim bufferSize As Integer
    Dim value As Long
     
    value = instance.WriteItemData(itemData, bufferSize)
    public long WriteItemData( 
       Stream itemData,
       int bufferSize
    )

    Parameters

    itemData
    A System.IO.Stream object.
    bufferSize
    The amount of bytes to be copied in each loop iteration.

    Return Value

    Returns the total amount of bytes read from the specified stream.
    Remarks

    This method allows you to control the buffer size of the loop that drives the copy operation from the specified stream to the ZipWriter object.

    The specified stream must support reading. It is not necessary for the stream to support seeking or writing. The specified stream is read using the specified buffer size until the end of the stream is reached. The method does not close specified stream.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also