<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`DataAdapter`](DataAdapter) › [`writeBinary`](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:** ```typescript writeBinary(normalizedPath: string, data: ArrayBuffer, options?: DataWriteOptions): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>normalizedPath</code> | <code>string</code> | path to file, use [normalizePath()](normalizePath) to normalize beforehand. | | <code>data</code> | <code>ArrayBuffer</code> | the new file content | | <code>options</code> | [`DataWriteOptions`](DataWriteOptions) | _(Optional)_ (Optional) | **Returns:** `Promise<void>`