Imports a binary large object (BLOB).

[ImportName] := Blob.IMPORT([Name [, CommonDialog]])

Parameters

Blob

Type: Variable

The BLOB that you want to import.

Name

Type: Text or code

The path and name of the BLOB that you want to import.

When you enter the path, consider the following shortcuts:

  • You can omit the drive letter if the command is located on the current drive.
  • You can omit the full path if the command is located in the current directory.
  • You can enter only the subdirectory name if the command is located in a subdirectory of the current directory.
CommonDialog

Type: Boolean

Specifies whether you want to display an import dialog box before the BLOB is imported. This dialog box lets you select the file that you want to import. Based on the SubType Property (BLOB), only the relevant file types are listed, such as bitmap files (*.bmp), memo files (*.txt), or all files (*.*).

If the CommonDialog parameter is true, then Microsoft Dynamics NAV displays the import dialog box. If the CommonDialog parameter is false (default), then Microsoft Dynamics NAV does not display the import dialog box.

Property Value/Return Value

Type: text

The name and path of the imported file.

If the return value is the file's name and path, then the BLOB was imported.

If the return value is an empty string, then the BLOB was not imported.

See Also