Self-contained data: URI kitchen
I couldn’t resist this. Hixie has released a new version of his data: URI kitchen, to celebrate the addition of data: URI support to the latest Opera beta. In the spirit of recursion, I present this reformulation of the data: URI kitchen that uses client side Javascript. What better way to deliver such a thing than as a data URI?
Self contained data: URI kitchen
Update (12th August 10:40am): I’ve changed the above to take in to account a bug report from Hixie in the comments.
Ian Hickson - 11th August 2003 17:00 - #
Martijn - 11th August 2003 17:29 - #
Gary F - 11th August 2003 21:04 - #
Martijn: My script can handle anything, in theory. :-) Let me know if you have any problems with it. (You do, as you say, have to give the right MIME type, of course.)
IE (any version) doesn't support data:. Nor does Safari, as far as I know.
GaryF: Opera's limit is 4KB. As far as I can tell, Mozilla's limit is 2GB, although I really wouldn't recommend testing that. ;-) In practice this means you can only really expect serious uses of data: to work with Gecko-based browsers, but you can use data: URLs for simple things (like stylesheets, small background images, or short pieces of text) without any trouble.
Ian Hickson - 12th August 2003 09:33 - #
GaryF: IE's limit is also 4KB.
P01 - 12th August 2003 23:42 - #
P01 - 13th August 2003 00:40 - #
Simon Proctor - 13th August 2003 11:57 - #
Gary F - 13th August 2003 15:53 - #
P01 - 13th August 2003 20:32 - #
Ian Hickson - 14th August 2003 10:04 - #
The thing the the %3D is that it means tha base64 encoded data URI's being created won't work correctly in Mozilla 1.4... Well at least they won't for me.
But if you take if off then end of the string it works fine. Which is why I think there's a problem. But I'm rather busy with some other stuff at the moment so can't look into it too hard, thus I raised the issue.
Simon Proctor - 14th August 2003 13:27 - #
A bit more insteresting, it appears that the link works fine if the '=' at the end is an equals but the URI-encoding of it to %3D messes up the link. This would appear to be a a problem with the script. Or the way Mozilla deals with the URI.
Simon Proctor - 14th August 2003 13:32 - #
Joe H - 27th June 2005 18:49 - #
data: URI image encoder
-Mike
Mike Scalora - 5th September 2005 22:49 - #