ToArray Method (StreamExtension)
Converts the specified stream to a byte array.
'Declaration
Public Shared Function ToArray( _
ByVal As Stream _
) As Byte()
Parameters
- stream
- The stream to convert.
Return Value
A byte array containing the contents of the stream.