ducjs - v4.4.2
    Preparing search index...

    Function fromDataURL

    • Synchronously decodes a Base64 Data URL into its constituent parts.

      This function only supports Base64 encoded Data URLs.

      Parameters

      • dataUrl: string

        The Base64 Data URL string (e.g., "data:image/png;base64,iVBOR...").

      Returns { data: Uint8Array; mimeType: string }

      An object containing the decoded Uint8Array and the MIME type.

      An error if the input is not a valid or supported Data URL.