Reads the entire contents of an item's data into a specified
System.IO.Stream.
'Declaration
Public Overloads Function ReadItemData( _
ByVal As Stream, _
ByVal () As Byte _
) As Long
'Usage
Dim instance As ZipReader
Dim stream As Stream
Dim buffer() As Byte
Dim value As Long
value = instance.ReadItemData(stream, buffer)
public long ReadItemData(
Stream ,
byte[]
)
Parameters
- stream
- A System.IO.Stream object that will receive the item's data.
- buffer
- An array of System.Byte to be used as the buffer in the data copy loop from ZipReader to stream.
Return Value
Returns the actual number of bytes written to the specified
System.IO.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