| 
	
 | 
 Posted by Toby Inkster on 04/29/06 16:21 
Asterbing wrote: 
 
> How to display image data embedded in the html page itself. Seen <img  
> src:"data:image/gif;base64,...">, but it doesn't work in IE. How to do ?  
> What workaround ? 
 
Yes, it can be done. You'll need: 
 
	1. A small server-side script that can do base64 decoding; 
 
	2. A small client-side script that Internet Explorer will 
	   run, that performs the following tasks: 
 
		* Finds all data:URLs 
		* For each of them, rewrites it to point to 
	 	  the server-side script, calling it using the 
		  base64-encoded data as a parameter. 
 
e.g. 
http://dean.edwards.name/weblog/2005/06/base64-ie/ 
http://www.kryogenix.org/days/2003/10/18/embedding 
 
Reminds me -- I keep meaning to add "data:" URLs to my chess board. 
 
http://examples.tobyinkster.co.uk/chess/ 
 
--  
Toby A Inkster BSc (Hons) ARCS 
Contact Me  ~ http://tobyinkster.co.uk/contact 
Now Playing ~ ./ed_harcourt/from_every_sphere/04_the_birds_will_sing_for_us.ogg
 
  
Navigation:
[Reply to this message] 
 |