Re: IE6 not display jpeg images from mysql databases
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: IE6 not display jpeg images from mysql databases

From: John Dunlop <usenet+2004@john.dunlop.name>
Date: Fri Sep 09 2005 - 12:45:58 CEST

Robert wrote:

> data:image/jpg;base64,".base64_encode($rowfoto['fotka'])

The registered MIME type is image/jpeg, not image/jpg, but apart from
that the URL conforms to RFC2397.

I'm afraid I can't comment on Internet Explorer, but browsers in
general are not under an obligation to support the 'data:' URL scheme.

What length is the data? According to RFC2397 'data:' URLs are only
useful for short values, although the permitted number of characters
in HTML4.01 attribute values is 65 536 - considerably larger than it
was when that RFC came out (1 024). Not that I'd expect browsers to
enforce these limits.

-- 
Jock
Received on Mon Oct 24 02:09:52 2005