File values look like ordinary paths, but are prefixed with an f so SurrealDB knows you mean binary storage, not a plain string.
To use files, a bucket must first be defined with the DEFINE BUCKET statement. The easiest way to experiment with file storage is to start with a bucket that holds files in memory.
Once a bucket has been defined, you can begin calling methods on file pointers such as .put() and .get() (see the file functions reference).
See also
A combination of files and SurrealDB's encoding functions can be used to set up ad-hoc memory storage. This can be convenient when running an instance that saves data to disk but prefers to keep certain items in memory.
The following example shows how this pattern might be used for temporary storage such as a user's shopping cart during a single session.