The readAsBinaryString
method is used to start reading the contents of the specified Blob
or File
. When the read operation is finished, the readyState
becomes DONE
, and the FileReader.loadend_event
is triggered. At that time, the result
attribute contains the raw binary data from the file.
Note that this method was once removed from the File API specification, but re-introduced for backward compatibility. Using FileReader.readAsArrayBuffer()
is recommended.