The FileReader interface's readAsArrayBuffer() method is used to start reading the contents of a specified Blob or File. When the read operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result attribute contains an ArrayBuffer representing the file's data.

Syntax

instanceOfFileReader.readAsArrayBuffer(blob);

Parameters

blob
The Blob or File from which to read.

Specifications

Specification Status Comment
File API
The definition of 'FileReader.readAsArrayBuffer' in that specification.
Working Draft Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support7 Yes3.610126
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? Yes Yes32126.1 ?

See also

Document Tags and Contributors

Contributors to this page: fscholz, erikadoyle, Sheppy, teoli, dolphonebubleine, Jeremie
Last updated by: fscholz,