readAsText

fun readAsText(blob: Blob, encoding: String = definedExternally): String(source)

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

MDN Reference