Skip to main content

EXPORT FILE (bSQL) | Blockpoint Docs

Exports a file from the file store. For examples, see Examples.

bSQL Syntax Conventions

Syntax​

EXPORT FILE "file_name" DIR | DIRECTORY  = "export_path" 
WITH NAME "new_name"

Arguments​

file_name
Is the name of the stored file.

file_path
The path in which to export the file.

new_name
The new file name.

Limitations​

If the file has been stored as encrypted, only the user who stored the file can export the decrypted file.

Permissions​

READ permissions required on the sysfiles blockchain container.

READ permissions on sysfiles default to members of the admin fixed database role. Members of the admin role can transfer permissions to other users.

Examples​

Exporting a stored file.​

The following exports the csv file "financialData" to the directory files directory with the new name "financialDataOutput.csv".

EXPORT FILE "financialData" DIR = "files"
WITH NAME "financialDataOutput"

See Also​