Normalizes a reference-media input that may arrive as raw base64, Data URI, or remote URL.
Reference media input with base64, url, and optional mimeType.
base64
url
mimeType
Fallback MIME type.
Error used when no usable media source is present.
Base64 or remote URL representation with MIME type.
When neither base64 nor url is present.
Normalizes a reference-media input that may arrive as raw base64, Data URI, or remote URL.