A RetroSearch Logo

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

Search Query:

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

FileReaderSync: FileReaderSync() constructor - Web APIs

FileReaderSync: FileReaderSync() constructor

Baseline Widely available

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

The FileReaderSync() constructor creates a new FileReaderSync.

Syntax Parameters

None.

Examples

The following code snippet shows creation of a FileReaderSync object using the FileReaderSync() constructor and subsequent usage of the object:

function readFile(blob) {
  const reader = new FileReaderSync();
  postMessage(reader.readAsDataURL(blob));
}

Note: This snippet must be used inside a Worker, as synchronous interfaces can't be used on the main thread.

Specifications Browser compatibility

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