A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync below:

FileReaderSync - Web APIs | MDN

FileReaderSync

Baseline Widely available

Note: This feature is only available in Web Workers, except for Service Workers.

The FileReaderSync interface allows to read File or Blob objects synchronously. This interface is only available in workers as it enables synchronous I/O that could potentially block.

Constructor
FileReaderSync()

Returns a new FileReaderSync object.

Instance properties

This interface does not have any properties.

Instance methods
FileReaderSync.readAsArrayBuffer()

This method converts a specified Blob or a File into an ArrayBuffer representing the input data as a binary string.

FileReaderSync.readAsBinaryString() Deprecated

This method converts a specified Blob or a File into a string representing the input data as a binary string. This method is deprecated, consider using readAsArrayBuffer() instead.

FileReaderSync.readAsText()

This method converts a specified Blob or a File into a string representing the input data as a text string. The optional encoding parameter indicates the encoding to be used (e.g., iso-8859-1 or UTF-8). If not present, the method will apply a detection algorithm for it.

FileReaderSync.readAsDataURL()

This method converts a specified Blob or a File into a string representing the input data as a data URL.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4