Data in a hurry
Aug. 13th, 2004 11:36 amDull survey: does your web browser of choice support the data:// scheme, as defined in RFC 2397 ?
Quick check:
If you can see a little picture of a face here, the answer is "yes". If you see some form of red-x/image-not-available thing, that's a "no".
![Larry]()
If you could comment, letting me know which browser you're using, that'd be great.
To save an immediate flurry of duplicate comments, IE6 doesn't support it :)
Quick check:
If you can see a little picture of a face here, the answer is "yes". If you see some form of red-x/image-not-available thing, that's a "no".
If you could comment, letting me know which browser you're using, that'd be great.
To save an immediate flurry of duplicate comments, IE6 doesn't support it :)
no subject
Date: 2004-08-13 09:07 am (UTC)Indeed. The html for the above face is:
<IMG
SRC="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw
AAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFz
ByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSp
a/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJl
ZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uis
F81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PH
hhx4dbgYKAAA7"
ALT="Larry">
If so, how do you get that data string from an image to code it?
Now that, I'm afraid, I don't know the answer to. I pinched the above code from the RFC, I have no idea how to generate my own, I'm afraid.
no subject
Date: 2004-08-13 09:09 am (UTC)no subject
Date: 2004-08-13 11:24 pm (UTC)The potential for badness is great, since it means you no longer have the option not to load the non-text data for the page.
For example: Suppose I am loading someone's homepage using a dialup link and I just want the email address at the bottom and not the 2MB .bmp of their cat which sits at the top of the page. Normally this is easy, but with 'data:' it becomes impossible.
no subject
Date: 2004-08-13 09:11 am (UTC)no subject
Date: 2004-08-13 09:13 am (UTC)Maybe getting the hex from a hex editor and then converting that to ascii?
Head splodey!
no subject
Date: 2004-08-13 09:46 am (UTC)no subject
Date: 2004-08-13 09:49 am (UTC)<?php print(base64_encode(file_get_contents('../Untitled-1.gif'))); ?>
^D
no subject
Date: 2004-08-13 11:23 am (UTC)no subject
Date: 2004-08-13 11:43 am (UTC)no subject
Date: 2004-08-13 11:28 am (UTC)