DB2®Blob.ToString Method

Returns a string that represents the DB2Blob structure.

Namespace:
IBM.Data.DB2Types
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Overrides Function ToString As String
[C#]
public override string ToString ()
[C++]
public:
virtual String^ ToString () override
[JScript]
public override function ToString () : String

Return value

A string representing the value of the DB2Blob structure.

Exceptions

Exception type Condition
InvalidOperationException There is no more data to return.

Remarks

If the CacheData property is false, applications can only retrieve the complete set of data from a DB2Blob instance once. Any additional attempts at retrieving data will result in an InvalidOperationException. The specific implications of this are:
  • This method can only be used to retrieve data from a DB2Blob instance once.
  • If you use this method to retrieve data from a DB2Blob instance, you cannot use the Value property or the GetBytes method to do the same.
  • If you have already used the Value property or the GetBytes method to retrieve data from a DB2Blob instance, you cannot use this method to do the same.
If the CacheData property is true, data can be read from the DB2Blob structure, using any of the access methods.