Welcome Guest, Not a member yet? Register   Sign In
Still having problem displaying images in IE7
#1

[eluser]Frank Rocco[/eluser]
Hello,

Here is the code I use to display an image ina blob.
Code:
<?php print base64_encode($row->Picture)?>

IE 8 works fine, IE7 fails.

Is there a better way to show an image stored in a blob?

Thanks

Frank
#2

[eluser]xeroblast[/eluser]
try this:

in your controller
Quote:<?php
function showPicture()
{
header("Content-type: image/jpeg");
echo $row->Picture;
}
?>

in your view
Quote:<img src="&lt;?php echo site_url('controller_name/showPicture'); ?&gt;" />




Theme © iAndrew 2016 - Forum software by © MyBB