Weird64 API - v0.1.0
    Preparing search index...

    Function decodeBlob

    • Decodes a Weird64 value containing whole bytes into a Blob.

      Parameters

      • encoded: string

        A Weird64 value produced by encodeBlob.

      • mimeType: string = 'application/octet-stream'

        MIME type assigned to the returned blob.

      • charset: string = DEFAULT_CHARSET

        The same 64-character alphabet used during encoding.

      Returns Promise<Blob>

      A promise resolving to the decoded blob.

      RangeError if the decoded payload is not byte-aligned or if the character set or encoded value is invalid.