BinaryRead Method

HttpRequest.BinaryRead Method (Int32)


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

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public byte[] BinaryRead(
	int count


Type: System.Int32

The number of bytes to read.

Return Value

Type: System.Byte[]

A byte array.

Exception Condition

count is 0.

- or -

count is greater than the number of bytes available.

The BinaryRead method is provided for compatibility with ASP.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft