This page is Ready to Use

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

FileReaderSync

Summary

Allows for synchronous reading of File or Blob objects. Only available in Workers, as synchronous I/O would otherwise block the main application from executing.

Properties

No properties.

Methods

No methods.

Events

No events.

Notes

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).

Related specifications

W3C File API Specification
W3C Working Draft

Attributions