226: Invalid data URI
You used an URI with the data scheme, but the URI’s format is invalid.
Solution
Make sure your URI fulfills the requirements of a data URI. In particular, a data URI
- begins with
data: - optionally followed by a media type like
text/cssorimage/png - followed by a base64 indicator
;base64if the data is base64-encoded - followed by a mandatory comma
, - followed by either base64-encoded or URL-encoded data.
Here is an example where a short data URI only contains a single word carrot
. Mind the mandatory comma before the word:
[t]->data:,carrot
The word carrot
does not contain any characters that need to be escaped in URL-encoding, so it appears unaltered. Data URIs are defined in RFC 2397.