Xceed .NET Libraries Documentation
WriteItemData(Stream,Int32) Method


Xceed.Zip Assembly > Xceed.Zip.ReaderWriter Namespace > ZipWriter Class > WriteItemData Method : WriteItemData(Stream,Int32) Method
A System.IO.Stream object.
The number of bytes to be copied in each loop iteration.
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 number of bytes to be copied in each loop iteration.

Return Value

A value representing the total number 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 the 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

Reference

ZipWriter Class
ZipWriter Members
Overload List