May 2007
Intermediate to advanced
1152 pages
30h 53m
English
The Stream object in ADO represents a stream of binary data or text. Although the Stream object was not covered in the chapter for ADO, it is included here for reference. Be aware that not all ADO providers support the Stream object.
The following table lists the various properties of the Stream object.
| Property | DataType | Description |
|---|---|---|
| Charset | String | Specifies the character set for the stream. |
| EOS | Boolean | True if the current position is at the end of stream (EOS). |
| LineSeparator | LineSeparatorEnum | Specifies the character or combination of characters used as the line separator in the stream. |
| Mode | ConnectModeEnum | Specifies the permissions for modifying data in the Stream object. |
| Position | Long | The current position in the stream. |
| Size | Long | Specifies the current size of the stream of data. |
| State | ObjectStateEnum | Specifies the current state of the Stream object. |
| Type | StreamTypeEnum | Specifies the type of data stored in the Stream object. |
The methods you can use with the Stream object are described in the following table.
| Method | Description |
|---|---|
| Cancel | Cancels a pending asynchronous call to a Stream object. |
| Close | Closes an open Stream object. |
| CopyTo | Copies data from the Stream object to another Stream object. |
| Flush | Flushes the contents stored in the Stream's buffer. |
| LoadFromFile | Loads the contents of a file into the Stream object. |
| Open | Opens the Stream object. |
| Read | Reads binary data from the stream. |
| ReadText | Reads text data from the stream. ... |
Read now
Unlock full access