Codeunit 5505362 M365 Blob Management

Codeunit 5505362 M365 Blob Management

Methods

ArchiveFilter

procedure ArchiveFilter(): Text

Returns an Archive/ZIP file filter text for import/export operations.

Parameters / Return Value

  • Returns Text

    Text


ZipFilter

procedure ZipFilter(): Text

Returns an Archive/ZIP file filter text for import/export operations.

Parameters / Return Value

  • Returns Text

    Text


BlobVariantToTempBlob

procedure BlobVariantToTempBlob(fromBlobVariant: Variant; var toTempBlob: Codeunit "Temp Blob"): Boolean

The passed fromBlobVariant variable is copied to a TempBlob toTempBlob.

Parameters / Return Value

  • fromBlobVariant Variant

    Variant

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


StreamToTempBlob

procedure StreamToTempBlob(var fromStream: InStream; var toTempBlob: Codeunit "Temp Blob"): Boolean

The passed InStream variable fromStream is copied to a TempBlob toTempBlob.

Parameters / Return Value

  • fromStream InStream

    InStream

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


RecordBlobToTempBlob

procedure RecordBlobToTempBlob(fromRecordVariant: Variant; fromFieldId: Integer; var toTempBlob: Codeunit "Temp Blob"): Boolean

Transfers the content of a Record Blob field to Temp Blob The function takes care of calculating the field if needed.

Parameters / Return Value

  • fromRecordVariant Variant

    Variant

  • fromFieldId Integer

    Integer

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


TempBlobToOutStream

procedure TempBlobToOutStream(var fromTempBlob: Codeunit "Temp Blob"; var toStream: OutStream): Boolean

The value of Codeunit “Temp Blob” fromTempBlob is copied to an OutStream toStream.

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • toStream OutStream

    OutStream

  • Returns Boolean

    Boolean


TempBlobToTempBlob

procedure TempBlobToTempBlob(var fromTempBlob: Codeunit "Temp Blob"; var toTempBlob: Codeunit "Temp Blob"): Boolean

Transfer a TempBlob to another TempBlob

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • toTempBlob Codeunit "Temp Blob"

    Codeunit Blob”

  • Returns Boolean

    Boolean


BlobToOutStream

procedure BlobToOutStream(fromBlobVariant: Variant; var toStream: OutStream): Boolean

The value of a Blob field fromBlobVariant is copied to an OutStream toStream.

Parameters / Return Value

  • fromBlobVariant Variant

    Variant

  • toStream OutStream

    OutStream

  • Returns Boolean

    Boolean


TextToTempBlob

procedure TextToTempBlob(fromTextValue: Text; encoding: TextEncoding; var toTempBlob: Codeunit "Temp Blob"; includeNewLine: Boolean): Boolean

A text fromTextValue is copied to the TempBlob Blob field toTempBlob. The TextEncoding is specified in encoding.

Parameters / Return Value

  • fromTextValue Text

    Text

  • encoding TextEncoding

    TextEncoding

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • includeNewLine Boolean

    Boolean

  • Returns Boolean

    Boolean


TextToTempBlob

procedure TextToTempBlob(fromTextValue: Text; encoding: TextEncoding; var toTempBlob: Codeunit "Temp Blob"): Boolean

A text fromTextValue is copied to the TempBlob Blob field toTempBlob. The TextEncoding is specified in encoding.

Parameters / Return Value

  • fromTextValue Text

    Text

  • encoding TextEncoding

    TextEncoding

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


TextToTempBlob

procedure TextToTempBlob(fromTextValue: Text; var toTempBlob: Codeunit "Temp Blob"; includeNewLine: Boolean): Boolean

A text fromTextValue is copied to the TempBlob Blob field toTempBlob. The TextEncoding is UTF-8.

Parameters / Return Value

  • fromTextValue Text

    Text

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • includeNewLine Boolean

    Boolean

  • Returns Boolean

    Boolean


TextToTempBlob

procedure TextToTempBlob(fromTextValue: Text; var toTempBlob: Codeunit "Temp Blob"): Boolean

A text fromTextValue is copied to the TempBlob Blob field toTempBlob. The TextEncoding is UTF-8.

Parameters / Return Value

  • fromTextValue Text

    Text

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


TempBlobToText

procedure TempBlobToText(var fromTempBlob: Codeunit "Temp Blob"; var toText: Text; encoding: TextEncoding): Boolean

The contents of Codeunit “Temp Blob” fromTempBlob are copied to a text toText usingusing the selected TextEncoding.

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • toText Text

    Text

  • encoding TextEncoding

    TextEncoding

  • Returns Boolean

    Boolean


TempBlobToText

procedure TempBlobToText(var fromTempBlob: Codeunit "Temp Blob"; var toText: Text): Boolean

The contents of Codeunit “Temp Blob” fromTempBlob are copied to a text toText using UTF-8 TextEncoding.

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • toText Text

    Text

  • Returns Boolean

    Boolean


BlobToText

procedure BlobToText(fromBlobVariant: Variant; var toText: Text): Boolean

The contents of a Blob field fromBlobVariant are copied to a text toText using UTF-8 TextEncoding.

Parameters / Return Value

  • fromBlobVariant Variant

    Variant

  • toText Text

    Text

  • Returns Boolean

    Boolean


AppendToTempBlob

procedure AppendToTempBlob(var fromTempBlob: Codeunit "Temp Blob"; var toTempBlob: Codeunit "Temp Blob"): Boolean

Appends the contents from one TempBlob Blob field (fromTempBlob) to another TempBlob Blob field (toTempBlob).

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • toTempBlob Codeunit "Temp Blob"

    Codeunit Blob”

  • Returns Boolean

    Boolean


AppendToTempBlob

procedure AppendToTempBlob(fromText: Text; var toTempBlob: Codeunit "Temp Blob"; includeNewLine: Boolean): Boolean

Appends a text (fromText) to Codeunit “Temp Blob” (toTempBlob).

Parameters / Return Value

  • fromText Text

    Text

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • includeNewLine Boolean

    Boolean

  • Returns Boolean

    Boolean


AppendToTempBlob

procedure AppendToTempBlob(fromText: Text; var toTempBlob: Codeunit "Temp Blob"): Boolean

Appends a text (fromText) to Codeunit “Temp Blob” (toTempBlob).

Parameters / Return Value

  • fromText Text

    Text

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


AppendNewLineToTempBlob

procedure AppendNewLineToTempBlob(var toTempBlob: Codeunit "Temp Blob"): Boolean

Appends a NewLine (CR/LF) to Codeunit “Temp Blob” (toTempBlob).

Parameters / Return Value

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


RemoveByteOrderMark

procedure RemoveByteOrderMark(var tempBlob: Codeunit "Temp Blob"): Boolean

Removed a Byte Order Mark (BOM) from Codeunit “Temp Blob” (if any).

Parameters / Return Value

  • tempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


TextToBase64

procedure TextToBase64(fromText: Text; var toBase64Text: Text): Boolean

The passed text fromText is encoded as a Base64 string toBase64Text.

Parameters / Return Value

  • fromText Text

    Text

  • toBase64Text Text

    Text

  • Returns Boolean

    Boolean


TempBlobToBase64

procedure TempBlobToBase64(var fromTempBlob: Codeunit "Temp Blob"; var toBase64Text: Text): Boolean

The contents of Codeunit “Temp Blob” fromTempBlob are encoded as a Base64 string toBase64Text.

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • toBase64Text Text

    Text

  • Returns Boolean

    Boolean


BlobToBase64

procedure BlobToBase64(fromBlobVariant: Variant; var toBase64Text: Text): Boolean

The contents of a Blob field fromBlobVariant are encoded as a Base64 string toBase64Text.

Parameters / Return Value

  • fromBlobVariant Variant

    Variant

  • toBase64Text Text

    Text

  • Returns Boolean

    Boolean


Base64ToTempBlob

procedure Base64ToTempBlob(fromBase64Text: Text; var toTempBlob: Codeunit "Temp Blob"): Boolean

A Base64 encoded text fromBase64Text is decoded and the contents are copied to Codeunit “Temp Blob” toTempBlob.

Parameters / Return Value

  • fromBase64Text Text

    Text

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


ImportToStream

procedure ImportToStream(dialogTitle: Text; fromFilter: Text; fromFolder: Text; var fromFile: Text; toStream: OutStream): Boolean

Shows an OpenFile dialog (dialogTitle, fromFilter, fromFolder, fromFile) and then imports the content of the selected file into the passed toStream.

Parameters / Return Value

  • dialogTitle Text

    Text

  • fromFilter Text

    Text

  • fromFolder Text

    Text

  • fromFile Text

    Text

  • toStream OutStream

    OutStream

  • Returns Boolean

    Boolean


ImportToStream

procedure ImportToStream(dialogTitle: Text; fromFilter: Text; var fromPath: Text; toStream: OutStream): Boolean

Shows an OpenFile dialog (dialogTitle, fromFilter, fromPath) and then imports the content of the selected file into the passed toStream.

Parameters / Return Value

  • dialogTitle Text

    Text

  • fromFilter Text

    Text

  • fromPath Text

    Text

  • toStream OutStream

    OutStream

  • Returns Boolean

    Boolean


ImportTempBlob

procedure ImportTempBlob(dialogTitle: Text; fromFilter: Text; fromFolder: Text; var fromFile: Text; var toTempBlob: Codeunit "Temp Blob"): Boolean

Shows an OpenFile dialog (dialogTitle, fromFilter, fromFolder, fromFile) and then imports content of the selected file into the passed toTempBlob Blob field.

Parameters / Return Value

  • dialogTitle Text

    Text

  • fromFilter Text

    Text

  • fromFolder Text

    Text

  • fromFile Text

    Text

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


ImportTempBlob

procedure ImportTempBlob(dialogTitle: Text; fromFilter: Text; var fromPath: Text; var toTempBlob: Codeunit "Temp Blob"): Boolean

Shows an OpenFile dialog (dialogTitle, fromFilter, fromPath) and then imports the content from the selected file into the passed toTempBlob Blob field.

Parameters / Return Value

  • dialogTitle Text

    Text

  • fromFilter Text

    Text

  • fromPath Text

    Text

  • toTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • Returns Boolean

    Boolean


ExportStream

procedure ExportStream(fromStream: InStream; dialogTitle: Text; toFilter: Text; toFolder: Text; var toFile: Text): Boolean

Shows a SaveFile dialog (dialogTitle, toFilter, toFolder, toFile) and then exports the content of the fromStream into the selected file.

Parameters / Return Value

  • fromStream InStream

    InStream

  • dialogTitle Text

    Text

  • toFilter Text

    Text

  • toFolder Text

    Text

  • toFile Text

    Text

  • Returns Boolean

    Boolean


ExportStream

procedure ExportStream(fromStream: InStream; dialogTitle: Text; toFilter: Text; var toPath: Text): Boolean

Shows a SaveFile dialog (dialogTitle, toFilter, toPath) and then exports the content of the fromStream into the selected file.

Parameters / Return Value

  • fromStream InStream

    InStream

  • dialogTitle Text

    Text

  • toFilter Text

    Text

  • toPath Text

    Text

  • Returns Boolean

    Boolean


ExportTempBlob

procedure ExportTempBlob(var fromTempBlob: Codeunit "Temp Blob"; dialogTitle: Text; toFilter: Text; toFolder: Text; var toFile: Text): Boolean

Shows a SaveFile dialog (dialogTitle, toFilter, toFolder, toFile) and then exports the content of the fromTempBlob Blob field into the selected file.

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • dialogTitle Text

    Text

  • toFilter Text

    Text

  • toFolder Text

    Text

  • toFile Text

    Text

  • Returns Boolean

    Boolean


ExportTempBlob

procedure ExportTempBlob(var fromTempBlob: Codeunit "Temp Blob"; dialogTitle: Text; toFilter: Text; var toPath: Text): Boolean

Shows a SaveFile dialog (dialogTitle, toFilter, toPath) and then exports the content of the fromTempBlob Blob field into the selected file.

Parameters / Return Value

  • fromTempBlob Codeunit "Temp Blob"

    Codeunit “Temp Blob”

  • dialogTitle Text

    Text

  • toFilter Text

    Text

  • toPath Text

    Text

  • Returns Boolean

    Boolean


ExportBlob

procedure ExportBlob(fromBlobContent: Variant; dialogTitle: Text; toFilter: Text; toFolder: Text; var toFile: Text): Boolean

Shows a SaveFile dialog (dialogTitle, toFilter, toFolder, toFile) and then exports the content of the fromBlobContent field into the selected file.

Parameters / Return Value

  • fromBlobContent Variant

    Variant

  • dialogTitle Text

    Text

  • toFilter Text

    Text

  • toFolder Text

    Text

  • toFile Text

    Text

  • Returns Boolean

    Boolean


ExportBlob

procedure ExportBlob(fromBlobContent: Variant; dialogTitle: Text; toFilter: Text; var toPath: Text): Boolean

Shows a SaveFile dialog (dialogTitle, toFilter, toFolder, toFile) and then exports the content of the fromBlobContent field into the selected file.

Parameters / Return Value

  • fromBlobContent Variant

    Variant

  • dialogTitle Text

    Text

  • toFilter Text

    Text

  • toPath Text

    Text

  • Returns Boolean

    Boolean


ConfirmOverwriteBlob

procedure ConfirmOverwriteBlob(fieldCaption: Text; hasValue: Boolean; force: Boolean): Boolean

A simple confirmation dialog to ask a user to overwrite a field value (Blob).

Parameters / Return Value

  • fieldCaption Text

    Text

  • hasValue Boolean

    Boolean

  • force Boolean

    Boolean

  • Returns Boolean

    Boolean



EOS Labs -