InputStream.ReadBytes
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
InputStream.ReadBytes
Syntax
InputStream.ReadBytes( numBytes)
Return Value
An array of bytes that contains the data read from the stream.
Purpose
Obtains an array of bytes that contains the data read from the stream. This method reads the specified number of bytes from the stream and stores them in a byte array.
Remarks
This method increments the Offset of the stream reader by using the number of bytes read from the stream.
The actual number of bytes read from the stream can be less than the number of bytes specified for reading. You can use the stream reader Offset before and after the read to determine the actual number of bytes read.
Parameters
numBytes As Long
[In] Specifies the maximum number of bytes to read from the stream.