This documentation is archived and is not being maintained.

HttpRequest.BinaryRead Method

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

[Visual Basic]
Public Function BinaryRead( _
   ByVal count As Integer _
) As Byte()
[C#]
public byte[] BinaryRead(
 int count
);
[C++]
public: unsigned char BinaryRead(
 int count
)  __gc[];
[JScript]
public function BinaryRead(
   count : int
) : Byte[];

Parameters

count
Number of bytes to read.

Return Value

A byte array.

Exceptions

Exception Type Condition
ArgumentException The value of count is 0 or greater than the number of bytes available.

Remarks

The BinaryRead method is provided for compatibility with previous versions of ASP.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace

Show: