0 out of 1 rated this helpful - Rate this topic

FileReaderSync object

A constructor function producing an object that provides methods to synchronously read a File or a Blob, and an event model to obtain the results of these reads.

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 or Blob into memory as an array buffer.

readAsDataURL

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

readAsText

Reads a File or Blob into memory as a text string.

 

Remarks

Important  The FileReaderSync object's read methods (readAsText, readAsDataURL, and readAsArrayBuffer) have the same method signatures as the read methods of the FileReader object but they behave synchronously (as opposed to asynchronously).

 

 

Build date: 11/28/2012

© 2013 Microsoft. All rights reserved.