readAsBinaryString method
Note: This method is deprecated in favor of FileReader.readAsArrayBuffer.
The readAsBinaryString()
method of the FileReader interface is
used to start reading the contents of the
specified Blob or File. When the read operation is
finished, the FileReader.readyState property becomes
DONE
, and the FileReader.loadend_event
event is triggered. At that
time, the
FileReader.result property 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.
Implementation
external void readAsBinaryString(Blob blob);