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.
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.
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