http://qs1969.pair.com?node_id=39811
User since: Nov 03, 2000 at 09:52 UTC (23 years ago)
Last here: Jun 27, 2013 at 19:54 UTC (11 years ago)
Experience: 1544
Level:Hermit (10)
Writeups: 203
Location:Port Townsend, Washington
User's localtime: Mar 28, 2024 at 02:03 PDT
Scratchpad: View
For this user:Search nodes
Watch for posts by this user

Testing inline image data

If inline image data works in your browser, you should see a red square with a blue-outline square inside it.
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAQMAAABKLAcXAAAABlBMVEX/AAAAAP9sof2OAAAAIUlEQVR4nGNgGAWjgFTw//8HJF4Dg8CI5aGGxCgYBcQBAMULD/2Zt2wmAAAAAElFTkSuQmCC" alt="It doesn't work in your browser."> The HTML that produced it is:

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAQMAAABKLAcXAAAABlBMVEX/AAAAAP9sof2OAAAAIUlEQVR4nGNgGAWjgFTw//8HJF4Dg8CI5aGGxCgYBcQBAMULD/2Zt2wmAAAAAElFTkSuQmCC" alt="It doesn't work in your browser.">

This technique can be used in CGI s‎crip‎ts to generate small images without having to save them in separate files.


<img src="http://www.phipi.com/images/monkspeed.png">