Click to See Complete Forum and Search --> : The Object tag and Internet Explorer
Hi!
I am trying to use the Object tag to show images. It works fine in Opera and Firefox, but not in Internet Explorer. It seems that there's a problem with the implementation of IE. Does anyone here know a workaround for this? I need a way to show a base64-encoded image in IE. (Or another encoding if IE supports that.) Thanks!
Charles
11-23-2005, 05:14 AM
It wouldn't be so bad if MSIE completely ignored the element, but it gets it wrong. Sadly, the only work around is to get as many people as we can to stop using MSIE.
OK. But my customer uses Internet Explorer, and I need to show embedded images. How then...?
Charles
11-23-2005, 05:19 AM
The IMG element.
I know the IMG element. The problem is that I can't link to the image. I have to embed it somehow. For Opera and FireFox I can base64 encode it, but the base64 string is too long for Explorer (at least I think that's what the problem is).
Just to clarify, this is what I want to do:
<img src="data:image/gif;base64,R0lGODlhDwAPAKECAAAAzMzM///// wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4ML wWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==" alt="Base64 encoded image" width="150" height="150"/>
It apparently works for src strings shorter than a given length (1024?, 2048?). So what are my options for embedding larger images inside the HTML code? (Opera and Firefox don't seem to have a limit on this.)
jonga
12-05-2005, 11:10 PM
use a server side technology to decode and then send the image to the browser, will work always.
ShrineDesigns
12-06-2005, 01:05 AM
data: is not a registered protocol
embedding base64 data into a webpage seems impractical as base64 data is nearly 3 times larger than the original data size
i managed to "embed" an image, doesn't look very good in IE though, perhaps i did it wrong lol<object data="path/to/image.jpg" type="image/jpeg">
</object>
mpienzi
02-10-2006, 02:22 PM
I've got the same problem. I'm trying to use the object tag to load a FLASH file but the parameter string is way toooooo long for IE to handle. It works just fine in Firefox.
a small sample below:
<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' WIDTH=610 HEIGHT=450 codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab' ID=objFlash> <PARAM NAME=MOVIE VALUE='Diagram.swf?inFromWeb=938,W Baker|939, M Pienzi
the string goes on and on.
any suggestions?