HttpRequest.BinaryRead Method

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
)
public byte[] BinaryRead (
	int count
)
public function BinaryRead (
	count : int
) : byte[]

Parameters

count

The number of bytes to read.

Return Value

A byte array.

Exception typeCondition

ArgumentException

count is 0.

- or -

count is greater than the number of bytes available.

The BinaryRead method is provided for compatibility with ASP.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show: