Stores a file in the file store. For examples, see Examples.
STORE FILE "file_name" PATH = "file_path"
[ENCRYPT [= <bool>]]
TRUE | FALSE
Is the name specified name to store the file as.
The path to the file to be stored whose file name must include a valid extension.
An optional keyword specifying that the file should be encrypted in storage.
A boolean specifying whether to encrypt the file upon storage.
NOTE: Encrypting a file is currently user specific and encrypts using the current login encryption key, therefore there is no key_name specification necessary.
INSERT permissions required on the
sysfiles blockchain container.
WRITE permissions on
sysfiles default to members of the admin fixed database role. Members of the admin role can transfer permissions to other users.
Storing a file.
The following encrypts and stores the csv file constituents-financials.csv to the file store as "financialData".
STORE FILE "financialData"
PATH = "test_files/constituents-financials.csv"
ENCRYPT = TRUE