Interface FileReaderSync

    Allows to read File or Blob objects in a synchronous way.

    MDN Reference

    interface FileReaderSync {
        readAsArrayBuffer(blob: Blob): ArrayBuffer;
        readAsBinaryString(blob: Blob): string;
        readAsDataURL(blob: Blob): string;
        readAsText(blob: Blob, encoding?: string): string;
    }

    Methods

    • Parameters

      Returns string

      MDN Reference

    • Parameters

      • blob: Blob
      • Optionalencoding: string

      Returns string