The FileReader object lets web applications asynchronously read
contents of files (or raw data buffers) stored on the user's
using web.files.File
or web.files.Blob
objects to specify
file or data to read.
The FileReader object lets web applications asynchronously read contents of files (or raw data buffers) stored on the user's using `web.files.File` or `web.files.Blob` objects to specify file or data to read.
(abort this)
Method.
The abort method aborts the read operation. Upon return, the will be DONE.
instanceOfFileReader.abort();
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/abort
Method. The abort method aborts the read operation. Upon return, the will be DONE. `instanceOfFileReader.abort();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/abort`
(constructor & args)
Constructor.
The FileReader() constructor creates a new FileReader.
None.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/FileReader
Constructor. The FileReader() constructor creates a new FileReader. None. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/FileReader`
(error this)
Property.
[Read Only]
Returns the error that occurred while reading the file.
var error = instanceOfFileReader.error
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error
Property. [Read Only] Returns the error that occurred while reading the file. `var error = instanceOfFileReader.error` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error`
(onabort this)
Property.
The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted.
reader.onabort = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort
Property. The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted. `reader.onabort = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort`
(onerror this)
Property.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror
Property. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror`
(onload this)
Property.
The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload
Property. The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload`
(onloadend this)
Property.
A handler for the loadend event. This event is triggered each the reading operation is completed (either in success or failure).
Property. A handler for the loadend event. This event is triggered each the reading operation is completed (either in success or failure).
(onloadstart this)
Property.
A handler for the loadstart event. This event is triggered each the reading is starting.
Property. A handler for the loadstart event. This event is triggered each the reading is starting.
(onprogress this)
Property.
A handler for the progress event. This event is triggered while a Blob content.
Property. A handler for the progress event. This event is triggered while a Blob content.
(read-as-array-buffer this blob)
Method.
The web.files.FileReader
interface's readAsArrayBuffer() method
used to start reading the contents of a specified web.files.Blob
web.files.File
. When the read operation is finished, the readyState
DONE, and the loadend is triggered. At that time, the result
contains an js.ArrayBuffer
representing the file's data.
instanceOfFileReader.readAsArrayBuffer(blob);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer
Method. The `web.files.FileReader` interface's readAsArrayBuffer() method used to start reading the contents of a specified `web.files.Blob` `web.files.File`. When the read operation is finished, the `readyState` DONE, and the loadend is triggered. At that time, the `result` contains an `js.ArrayBuffer` representing the file's data. `instanceOfFileReader.readAsArrayBuffer(blob);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer`
(read-as-binary-string this blob)
Method.
The readAsBinaryString method is used to start reading the contents
the specified web.files.Blob
or web.files.File
. When the
operation is finished, the readyState
becomes DONE, and the
is triggered. At that time, the result
attribute contains the
binary data from the file.
instanceOfFileReader.readAsBinaryString(blob);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString
Method. The readAsBinaryString method is used to start reading the contents the specified `web.files.Blob` or `web.files.File`. When the operation is finished, the `readyState` becomes DONE, and the is triggered. At that time, the `result` attribute contains the binary data from the file. `instanceOfFileReader.readAsBinaryString(blob);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString`
(read-as-data-url this blob)
Method.
The readAsDataURL method is used to read the contents of the
web.files.Blob
or web.files.File
. When the read operation
finished, the readyState
becomes DONE, and the loadend is triggered.
that time, the result
attribute contains the data as a data:
representing the file's data as a base64 encoded string.
instanceOfFileReader.readAsDataURL(blob);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
Method. The readAsDataURL method is used to read the contents of the `web.files.Blob` or `web.files.File`. When the read operation finished, the `readyState` becomes DONE, and the loadend is triggered. that time, the `result` attribute contains the data as a data: representing the file's data as a base64 encoded string. `instanceOfFileReader.readAsDataURL(blob);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL`
(read-as-text this & args)
Method.
The readAsText() method is used to read the contents of the specified
or web.files.File
. When the read operation is complete, the
is changed to DONE, the loadend event is triggered, and the result
contains the contents of the file as a text string.
instanceOfFileReader.readAsText(blob[, encoding]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
Method. The readAsText() method is used to read the contents of the specified or `web.files.File`. When the read operation is complete, the is changed to DONE, the loadend event is triggered, and the `result` contains the contents of the file as a text string. `instanceOfFileReader.readAsText(blob[, encoding]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText`
(ready-state this)
Property.
[Read Only]
The web.files.FileReader
readyState property provides the current
of the reading operation a FileReader is in. A FileReader exists
one of the following states:
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState
Property. [Read Only] The `web.files.FileReader` readyState property provides the current of the reading operation a FileReader is in. A FileReader exists one of the following states: See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState`
(result this)
Property.
[Read Only]
The web.files.FileReader
result property returns the file's
This property is only valid after the read operation is complete,
the format of the data depends on which of the methods was used
initiate the read operation.
var file = instanceOfFileReader.result
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result
Property. [Read Only] The `web.files.FileReader` result property returns the file's This property is only valid after the read operation is complete, the format of the data depends on which of the methods was used initiate the read operation. `var file = instanceOfFileReader.result` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result`
(set-onabort! this val)
Property.
The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted.
reader.onabort = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort
Property. The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted. `reader.onabort = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort`
(set-onerror! this val)
Property.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror
Property. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror`
(set-onload! this val)
Property.
The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload
Property. The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload`
(set-onloadend! this val)
Property.
A handler for the loadend event. This event is triggered each the reading operation is completed (either in success or failure).
Property. A handler for the loadend event. This event is triggered each the reading operation is completed (either in success or failure).
(set-onloadstart! this val)
Property.
A handler for the loadstart event. This event is triggered each the reading is starting.
Property. A handler for the loadstart event. This event is triggered each the reading is starting.
(set-onprogress! this val)
Property.
A handler for the progress event. This event is triggered while a Blob content.
Property. A handler for the progress event. This event is triggered while a Blob content.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close