Input and output
Data URLs are useful when an API or HTML document expects embedded content
instead of a separate file.
Base64 increases the size of the data. Prefer a normal file upload when the
receiving service supports one.
Encode a file as a base64 data URL.