Skip to main content
Version: 3.33.2

Response.blob()

The blob() method of the Response interface takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob.

Syntax

blob()

Parameters

None.

Return value

A Promise that resolves with a Blob.

Exceptions

  • TypeError
    • : Thrown if the response body has already been consumed.