You are here: Re: image from within document itself « HTML « IT news, forums, messages
Re: image from within document itself

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация