Skip to main content

STORE FILE (bSQL) | Blockpoint Docs

Stores a file in the file store. For examples, see Examples.

bSQL Syntax Conventions

Syntax​

STORE FILE "file_name" PATH = "file_path"
[ENCRYPT [= <bool>]]

bool ::=
TRUE | FALSE

Arguments​

file_name
Is the name specified name to store the file as.

file_path
The path to the file to be stored whose file name must include a valid extension.

ENCRYPT
An optional keyword specifying that the file should be encrypted in storage.

bool
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.

Permissions​

WRITE or 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.

Examples ​

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

See Also​