FileReaderSync object

FileReaderSync object provides methods to synchronously read a File or a Blob. The FileReaderSync object is only available within a Web Worker.

Internet Explorer 10

 

Syntax


var reader = new FileReaderSync();

DOM Information

Inheritance Hierarchy

The FileReaderSync does not inherit from any class or interface.

Members

The FileReaderSync object has these types of members:

Methods

The FileReaderSync object has these methods.

MethodDescription
readAsArrayBuffer

Reads a File, Blob, MSStream into memory as an ArrayBuffer object.

readAsDataURL

Reads a File or Blob object into memory as a data URL string.

readAsText

Reads a File, Blob, or MSStream object into memory as a text string.

 

Remarks

Important  The FileReaderSync object's read methods (readAsText, readAsDataURL, and readAsArrayBuffer) have the same name as the read methods of the FileReader object but they perform synchronous ream operations and return the read data.

The FileReaderSync object throws exceptions when read errors are encountered.

 

 

Show:
© 2014 Microsoft