readAsDataURL method

String readAsDataURL(
  1. Blob blob
)

@AvailableInWorkers("worker_except_service")

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. This interface is only available in workers as it enables synchronous I/O that could potentially block.

Implementation

external String readAsDataURL(Blob blob);