FileReader
Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
interface FileReader
extends EventTarget {
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
readonly readyState: number;
readonly result: string | ArrayBuffer | null;
abort(): void;
addEventListener(
type: string,
)
: void;
readAsArrayBuffer(
blob: Blob)
: void;
readAsBinaryString(
blob: Blob)
: void;
readAsDataURL(
blob: Blob)
: void;
readAsText(
blob: Blob, encoding?: string)
: void;
removeEventListener(
type: string,
)
: void;
}
var FileReader
: {
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
};
Properties
readonly readyState: number
readonly result: string | ArrayBuffer | null
Methods
addEventListener(
type: string,
)
: void
readAsArrayBuffer(
blob: Blob)
: void
readAsBinaryString(
blob: Blob)
: void
readAsDataURL(
blob: Blob)
: void
readAsText(
blob: Blob, encoding?: string)
: void
removeEventListener(
type: string,
)
: void