Supported formats: JPEG/JPG, PNG, GIF, BMP
Some applications that use URLs also have a need to embed (small) media type data directly inline. This document defines a new URL scheme that would work like 'immediate addressing'. The URLs are of the form:
data:[<mime type>][;base64],<encoded data>
An inline binary resource begins with the string literal
data:. Immediately following that is an optional MIME type and similarly optional encoding. If the encoding is specified, it is preceded by a semicolon (
;). Omitting these tokens makes them default to values of
text/plain;charset=US-ASCII. Then, finally, a comma (
,) delimits these properties from the actual encoded binary data, which is placed at the end.