<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Vault`](Vault) › [`createBinary`](Vault/createBinary) ## Vault.createBinary() method Create a new binary file inside the vault. **Signature:** ```typescript createBinary(path: string, data: ArrayBuffer, options?: DataWriteOptions): Promise<TFile>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>path</code> | <code>string</code> | Vault absolute path for the new file, with extension. | | <code>data</code> | <code>ArrayBuffer</code> | content for the new file. | | <code>options</code> | [`DataWriteOptions`](DataWriteOptions) | _(Optional)_ (Optional) | **Returns:** `Promise<`[`TFile`](TFile)`>` ## Exceptions Error if file already exists 0.9.7