readAsText method

String readAsText(
  1. Blob blob, [
  2. String encoding
])

The readAsText() method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string. This interface is only available in workers as it enables synchronous I/O that could potentially block.

Implementation

external String readAsText(
  Blob blob, [
  String encoding,
]);