window.kaolin
    Preparing search index...

    Function downloadBlob

    • Trigger a browser download of an in-memory Blob as a file.

      Hands the blob to a transient <a download> element and clicks it so the browser saves it under filename (the exact "Save As" prompt behavior depends on the user's browser settings). Works for any content type (text, JSON, images, binary, ...); the type is whatever the blob carries. The temporary object URL is released after the click.

      Parameters

      • filename: string

        Suggested name for the downloaded file (e.g. 'data.json').

      • blob: Blob

        The file contents to save.

      Returns void