Question : Display of base64 images in IE

Hope someone can help  me here.

I'm using classic asp on a windows 2003 server pulling in an xsl file, which contains several base64 encoded images, which I can successfully display without problem using :-

<img alt="{pdesc}" src="data:image/png;base64,{source}" width="{width}" height="{height}"/>

The only problem is some the pictures don't display properly in IE and I can't get anything to work :-(

Any pointers gratefully received!

TIA!

Grant

Answer : Display of base64 images in IE

and remember to set the header according to the type
So pass the type too
...asp?type={type}&src={source}


dim type..
type=request.form("type") ' or something like that, I am not asp programmer


if type="gif"' then  response.ContentType = "image/gif"
elseif type="png"' then  response.ContentType = "image/png"
  response.write Base64Decode(sourceNode.text);



Random Solutions  
 
programming4us programming4us