DataAdapter โ€บ writeBinary

DataAdapter.writeBinary() method

Write to a binary file. If the file exists its content will be overwritten, otherwise the file will be created.

Signature:

writeBinary(normalizedPath: string, data: ArrayBuffer, options?: DataWriteOptions): Promise<void>;

Parameters

ParameterTypeDescription
normalizedPathstringpath to file, use normalizePath() to normalize beforehand.
dataArrayBufferthe new file content
optionsDataWriteOptions(Optional) (Optional)

Returns:

Promise<void>