[]
Converts the specified stream to a byte array.
public static byte[] ToArray(this Stream stream)
The stream to convert.
A byte array containing the contents of the stream.