Reads the entire contents of an item's data into a specified stream.
'Declaration
Public Overloads Function ReadItemData( _
ByVal As Stream, _
ByVal As Integer _
) As Long
'Usage
Dim instance As ZipReader
Dim stream As Stream
Dim bufferSize As Integer
Dim value As Long
value = instance.ReadItemData(stream, bufferSize)
public long ReadItemData(
Stream ,
int
)
Parameters
- stream
- A System.IO.Stream object that will receive the item's data.
- bufferSize
- The number of bytes to be copied in each loop iteration.
Return Value
Returns the actual number of bytes written to the specified stream, or 0 if the end of the item's data has been reached.
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