Use MIME Type to Data URI Helper without a complicated workflow.
Build Data URI prefixes from MIME types and prepare browser-ready encoded payloads. This registration is prepared for a browser-side JavaScript UI, so no Python/API processing is required when the UI is implemented.