InputStream.Length

Syntax

InputStream.Length

Data Type

Long

Purpose

Returns the size of the stream in bytes.

Remarks

Use this property to obtain the size of the stream. You can use this value to determine how many characters to allocate for a buffer or to read from the stream.