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:
| Property | Value Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Path of the compressed file to read |
| compressionAlgorithm | string | Yes | File compression type. Currently only 'br' is supported. |
Valid values of compressionAlgorithm:
| Value | Description |
|---|---|
| br | Brotli compression |
Return Value
- ArrayBuffer data: File read result
Parameters for caught exceptions
- string error: Error information
