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
- read
As (blob): ArrayBufferArray Buffer Parameters
- blob: Blob
Returns ArrayBuffer
readAsBinaryString
- read
As (blob): stringBinary String Parameters
- blob: Blob
Returns string
readAsDataURL
- read
As (blob): stringDataURL Parameters
- blob: Blob
Returns string
readAsText
- read
As (blob, encoding?): stringText Parameters
- blob: Blob
Optional
encoding: string
Returns string
Allows to read File or Blob objects in a synchronous way.
MDN Reference