Skip to content

CapacitorAdapterFs.readBinary method

CapacitorAdapterFs › readBinary

Unofficial

Read a file as binary data.

Signature:

readBinary(realPath: string): Promise<ArrayBuffer>

Parameters:

ParameterTypeDescription
realPathstringFile path to read.

Returns: Promise<ArrayBuffer>Binary content of the file.