Data URI scheme: Difference between revisions

Content deleted Content added
Disadvantages: Tested Opera 9p2, 50kb data: uri works fine.
Line 23:
data:[<mediatype>][;base64],<data>
 
The <mediatype> is an internet media type specification (with optional parameters; see [[MIME]]). The appearance of ";base64" means that the data is encoded as [[base64]]. Without ";base64", the data (as a sequence of octets[[octet (computing)|octet]]s) is represented using [[ASCII]] encoding for [[octet]]soctets inside the range of safe URL characters and using the standard %xx hex encoding of URLs for octets outside that range. If <mediatype> is omitted, it defaults to text/plain;charset=US-ASCII. As a shorthand, "text/plain" can be omitted but the charset parameter supplied.
 
The <tt>data:</tt> URI scheme has no relative URL forms.