• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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;" />


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.