English
Appearance
Converts a File object to an ArrayBuffer.
File
ArrayBuffer
import { toArrayBuffer } from 'rattail' await toArrayBuffer(new File(['Hello, world!'], 'hello.txt', { type: 'text/plain' })) // return ArrayBuffer
file
Promise<ArrayBuffer>