HttpRequestWrapper.BinaryRead(Int32) Method

Definition

Performs a binary read of a specified number of bytes from the current input stream.

C#
public override byte[] BinaryRead(int count);

Parameters

count
Int32

The number of bytes to read.

Returns

Byte[]

An array that contains the binary data.

Exceptions

count is less than 0.

-or-

count is greater than the number of bytes available.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1