Skip to content

FileSystemManager.readCompressedFileSync ​

JS
    FileSystemManager.readCompressedFileSync(Object object)

Synchronously reads the content of a local file with a specified compression type

The synchronous version of FileSystemManager.readCompressedFile

Parameters

  • Object object: Input parameters. See the table below for details.

object properties:

PropertyValue TypeRequiredDescription
filePathstringYesPath of the compressed file to read
compressionAlgorithmstringYesFile compression type. Currently only 'br' is supported.

Valid values of compressionAlgorithm:

ValueDescription
brBrotli compression

Return Value

  • ArrayBuffer data: File read result

Parameters for caught exceptions

  • string error: Error information