Syntaxvar dataUrl = FileReader.readAsDataURL(object);
Pass one of the following:
- object [in]
Type: File or Blob
- dataUrl [out, retval]
This method asynchronously starts reading the contents of the specified File or Blob object. When the read operation is complete, the readyState property is set to DONE and the onloadend event is fired. At that time, the result property contains a data URL string that encodes the file's data that was read.