Send feedback on this topic.
Teradata.Client.Provider
Read(Int32) Method



Teradata.Client.Provider Namespace > TdBlob Class > Read Method : Read(Int32) Method
Number of bytes to read from the BLOB.
Returns a Byte array and advances the current position of the TdStream.
Syntax
'Declaration
 
Public Overloads Function Read( _
   ByVal count As Integer _
) As Byte()
'Usage
 
Dim instance As TdBlob
Dim count As Integer
Dim value() As Byte
 
value = instance.Read(count)
public byte[] Read( 
   int count
)
public:
array<byte>^ Read( 
   int count
) 

Parameters

count
Number of bytes to read from the BLOB.

Return Value

Returns a byte array having a maximum of count bytes containing the data read from the BLOB.
Exceptions
ExceptionDescription
The TdBlob is null, or the TdConnection is closed.
The TdBlob or the TdStream is closed / disposed.
The Advanced SQL Engine returned an error, or the .NET Data Provider for Teradata detected an error.
Remarks
The .NET Data Provider for Teradata reads the BLOB field into a byte array whose size is equal to or less than count. If the byte array size is less count, then the end of the BLOB is reached. The current position of the TdStream is also advanced.
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdBlob Class
TdBlob Members
Overload List