Class File

A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format.

Hierarchy (view full)




lastModified: number
name: string
webkitRelativePath: string


  • get size(): number
  • Returns the size of the Blob object, in bytes.

    Returns number

  • get type(): string
  • Returns the MIME type of the Blob object.

    Returns string


  • Returns a promise that resolves with an ArrayBuffer representing the Blob's data.

    Returns Promise<ArrayBuffer>

  • Returns a new Blob object containing the data in the specified range of bytes of the source Blob.


    • start: number = 0

      The start byte index.

    • end: number = ...

      The end byte index.

    • type: string = ''

      The content type of the new Blob.

    Returns Blob

  • Returns a promise that resolves with a string representation of the Blob object.

    Returns Promise<string>