A DOMError representing the error that occurred while reading the file.
A DOMError representing the error that occurred while reading the file.
MDN
The readAsArrayBuffer method is used to starts reading the contents of the specified Blob or File.
The readAsArrayBuffer method is used to starts reading the contents of the specified Blob or File. When the read operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result attribute contains an ArrayBuffer representing the file's data.
MDN
The readAsDataURL method is used to starts reading the contents of the specified Blob or File.
The readAsDataURL method is used to starts reading the contents of the specified Blob or File. When the read operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result attribute contains a data: URL representing the file's data as base64 encoded string.
MDN
The readAsText method is used to starts reading the contents of the specified Blob or File.
The readAsText method is used to starts reading the contents of the specified Blob or File. When the read operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result attribute contains the contents of the file as a text string.
MDN
The FileReader object 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.
MDN