You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

get_content()

Usage

get_content(file[, encoding = "UTF-8"])

Description
Retrieves the content of the given file from the Structr filesystem. This method can be used to access the binary content of a file stored in Structr from StructrScript expressions.

Note

The parameter encoding is available from version 2.3.9+

Example

${get_content(first(find('File', 'name', 'test.txt')))}

Search results for "get_content()"

get_content()

Retrieves the content of the given file from the Structr filesystem. This method can be used to access the binary content of a file stored in Structr

get_content(file[, encoding = "UTF-8"])