dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlBlob Class / ToString Method
Example

In This Topic
    ToString Method (PgSqlBlob)
    In This Topic
    Converts the current PgSqlBlob object to a System.String.
    Syntax
    'Declaration
     
    Public Overrides Function ToString() As String
    public override string ToString()

    Return Value

    A System.String with the same value as the PgSqlBlob.
    Remarks
    If a Value is actually a sequence of bytes that represent a string, you can use ToString method to obtain that string. The default encoding is used.
    Example
    The example shows a code fragment that gets a PgSqlBlob field from a PgSqlReader and writes it to the console.
    ...
    PgSqlBlob myBlob = myReader.GetPgSqlBlob(myReader.GetOrdinal("TextColumnName"));
    Console.WriteLine(myBlob.ToString());
    ...
    ...
    Dim Blob As PgSqlBlob = myReader.GetPgSqlBlob(myReader.GetOrdinal("TextColumnName"))
    Console.WriteLine(myBlob.ToString())
    ...
    See Also