Hello,
I'm storing images in a mysql mediumblob field, and now I'm trying to download it into the html code.
My problem is that I receive the message "Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\GeStand\index.php:129) in C:\Program Files\Apache Group\Apache2\htdocs\GeStand\index.php on line 110"
I try to change the content type to show the image...
CODE:
function getImage()
...
header("Content-Type: ".$image_type);
$image = $row['image'];
return $image;
...
HTML code where I'm trying to display the image
...
<tr>
<td>
<img src=<?php echo(getImagem()); ?>>
</td>
</tr>
...
I spend 2 days trying to solve this problem... somebody help me please!
Sorry my English.
Thanks in advance.
André.
I'm storing images in a mysql mediumblob field, and now I'm trying to download it into the html code.
My problem is that I receive the message "Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\GeStand\index.php:129) in C:\Program Files\Apache Group\Apache2\htdocs\GeStand\index.php on line 110"
I try to change the content type to show the image...
CODE:
function getImage()
...
header("Content-Type: ".$image_type);
$image = $row['image'];
return $image;
...
HTML code where I'm trying to display the image
...
<tr>
<td>
<img src=<?php echo(getImagem()); ?>>
</td>
</tr>
...
I spend 2 days trying to solve this problem... somebody help me please!
Sorry my English.
Thanks in advance.
André.