|
Posted by Alan J. Flavell on 04/28/06 22:15
On Fri, 28 Apr 2006, Jim Higson wrote:
> 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 ?
>
> Those are data URLs.
Quite suitable for small images, but a bit wasteful of space for
larger ones[1]
> There is no workaround to get them showing in IE,
indeed
> except to fall back on 'normal' http URLs.
You could use conditional comments, so that compatible client agents
"see" only the embedded data, and don't have to make an additional
HTTP transfer, whereas the operating system component that thinks it's
a web browser will perceive the external link instead.
If you cared enough, that is.
regards
[1] Most current browsers support gzipped HTML, so feel free to
offer pages in that format if you'd like to conserve space and
bandwidth. Or use mod_gzip to negotiate it.
[Back to original message]
|