Navigation:  Advantage .NET Data Provider > AdsDataReader Class > AdsDataReader Methods >

AdsDataReader.GetBytes()

Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Retrieves a binary or raw field as an array of bytes.

public byte[] GetBytes( int columnNumber );

Remarks

This method retrieves the specified zero-based column value as an array of bytes. No conversions are performed; therefore the data retrieved must already be a byte array (raw field or BLOB field). This method cannot be used to retrieve null values. Call AdsDataReader.IsDBNull to check for null values before calling this method.

See Also

GetValue

IsDBNull

GetBytes(int, long, byte[], int, int)