Exports a file from the file store. For examples, see Examples.
EXPORT FILE "file_name" DIR | DIRECTORY = "export_path"
WITH NAME "new_name"
Is the name of the stored file.
The path in which to export the file.
The new file name.
If the file has been stored as encrypted, only the user who stored the file can export the decrypted file.
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.
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"