Send feedback on this topic.
GetStream Method

Teradata.Client.Provider Namespace > TdDataReader Class : GetStream Method
Column ordinal (see TdDataReader.GetOrdinal).
Gets the value of the specified field (column) as a IO.Stream.
Public Overrides NotOverridable Function GetStream( _
   ByVal ordinal As Integer _
) As Stream
Dim instance As TdDataReader
Dim ordinal As Integer
Dim value As Stream
value = instance.GetStream(ordinal)
public override Stream GetStream( 
   int ordinal
Stream^ GetStream( 
   int ordinal
) override 


Column ordinal (see TdDataReader.GetOrdinal).

Return Value

Returns the value of the specified field represented as a Stream type.
ordinal is less than zero or ordinal is equal to or greater than TdDataReader.FieldCount.
The field is null or cannot be converted into a Byte Array.
CommandBehavior is set to SchemaOnly, or there is no data for the row or column, or preceding columns are no longer accessible.
The TdDataReader is closed.
The Teradata Database returned an error, or .NET Data Provider for Teradata detected an error.
Use this method to retrieve columns of type BLOB, Byte or VarByte. This method may be used with either SequentialAccess or Default command behaviour.

The Stream will be disposed when you read another column, row or result set.


Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also


TdDataReader Class
TdDataReader Members