• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
display blob data

#1
[eluser]Unknown[/eluser]
I am writing this code :

<?php foreach($daftargambar->result() as $row){
$filename = $row->file_name;
$mime_type = $row->mime_type;
$filedata = $row->file_data;
header("content-disposition: inline; filename=$filename");
header("content-type: image/jpeg");
header("content-length: ".strlen($filedata));
echo ($filedata);

}
I have message like this :
The image "http://localhost/blogci/index.php/cgambar cannot be displayed because it contanins error"

anybody have the same experience ? , help me , help me. Thaks

#2
[eluser]john_j[/eluser]
Most browsers have a developer tool. Use that to get more details about the error thrown.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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