Show / Hide Table of Contents

    AsText Procedure

    Codeunit Temp Blob

    Gets the data as plain text.

    Overloads

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

    AsText() Procedure

    Gets the data as plain text.

    Signature

    [NonDebuggable]
    AsText() Result: Text
    

    Returns

    Text

    The BLOB Data as text.

    AsText(Integer) Procedure

    Gets the data as plain text, with a provided maximum length.

    Signature

    [NonDebuggable]
    AsText(MaxLength: Integer) Result: Text
    

    Parameters

    MaxLength Integer

    The maximum text length to return.

    Returns

    Text

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

    AsText(TextEncoding) Procedure

    Gets the data as plain text, encoded with a provided encoding.

    Signature

    [NonDebuggable]
    AsText(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 provided encoding.

    AsText(TextEncoding; Integer) Procedure

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

    Signature

    [NonDebuggable]
    AsText(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 provided 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