FileReaderSync

The FileReaderSync interface allows to read File or Blob objects synchronously.

MDN Reference

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

The readAsArrayBuffer() method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into an ArrayBuffer.

Link copied to clipboard

The readAsDataURL() method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string representing a data URL.

Link copied to clipboard
fun readAsText(blob: Blob, encoding: String = definedExternally): String

The readAsText() method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.