Show / Hide Table of Contents

    GetAsText Procedure

    Table tTempBlob

    Gets the data as plain text.

    Overloads

    Name Description
    GetAsText(): Text Gets the data as plain text.
    GetAsText(Integer): Text Gets the data as plain text with a given maximum length.
    GetAsText(TextEncoding): Text Gets the data as plain text, encoded with the given encoding.
    GetAsText(TextEncoding; Integer): Text Gets the data as plain text, encoded with the given encoding and with a given maximum length.

    GetAsText() Procedure

    Gets the data as plain text.

    Signature

    [NonDebuggable]
    GetAsText() : Text
    

    Returns

    Text

    The Blob Data as text.

    GetAsText(Integer) Procedure

    Gets the data as plain text with a given maximum length.

    Signature

    [NonDebuggable]
    GetAsText(MaxLength: Integer) : Text
    

    Parameters

    MaxLength Integer

    The maximum text length to return.

    Returns

    Text

    The Blob Data as text, with the provided maximum length.

    GetAsText(TextEncoding) Procedure

    Gets the data as plain text, encoded with the given encoding.

    Signature

    [NonDebuggable]
    GetAsText(Encoding: TextEncoding) Result: Text
    

    Parameters

    Encoding TextEncoding

    The encoding that will be used when the text is read from the Blob stream.

    Returns

    Text

    The text, encoded with the given encoding.

    GetAsText(TextEncoding; Integer) Procedure

    Gets the data as plain text, encoded with the given encoding and with a given maximum length.

    Signature

    [NonDebuggable]
    GetAsText(Encoding: TextEncoding; MaxLength: Integer) Result: Text
    

    Parameters

    Encoding TextEncoding

    The encoding that will be used when the text is read from the Blob stream.

    MaxLength Integer

    The maximum text length to return.

    Returns

    Text

    The text, encoded with the given encoding and with the provided maximum length.

    Remarks

    Due to a bug in runtime (in the InStream.Read(<text>,<integer>) function) it is only possible to read up to the first 1000000 characters if the text is encoded as UTF8 or UTF16.

    As a workaround, in these circumstances this function reverts to reading all characters and then just returns the first selected characters. This might have a negative performance impact.

    This documentation is generated from Smart Toolbox v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX