dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlBlob Class / ToString Method
Example

In This Topic
    ToString Method (MySqlBlob)
    In This Topic
    Converts the current MySqlBlob 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 MySqlBlob.
    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 MySqlBlob field from a MySqlReader and writes it to the console.
    ...
    MySqlBlob myBlob = myReader.GetMySqlBlob(myReader.GetOrdinal("TextColumnName"));
    Console.WriteLine(myBlob.ToString());
    ...
    ...
    Dim Blob As MySqlBlob = myReader.GetMySqlBlob(myReader.GetOrdinal("TextColumnName"))
    Console.WriteLine(myBlob.ToString())
    ...
    See Also