Interface FileReaderSync
interface FileReaderSync {
readAsArrayBuffer(blob: Blob): ArrayBuffer;
readAsBinaryString(blob: Blob): string;
readAsDataURL(blob: Blob): string;
readAsText(blob: Blob, encoding?: string): string;
}
readAsArrayBuffer(blob: Blob): ArrayBuffer;
readAsBinaryString(blob: Blob): string;
readAsDataURL(blob: Blob): string;
readAsText(blob: Blob, encoding?: string): string;
}
Index
Methods
readAsArrayBuffer
- readAsArrayBuffer(blob: Blob): ArrayBuffer
Parameters
- blob: Blob
Returns ArrayBuffer
Allows to read File or Blob objects in a synchronous way.
MDN Reference