La imagen parece que está en el campo, al menos no da error y el registro contiene todos los datos. Cuando voy ha ver la imagen me presenta el error siguiente:
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\Web\getdata.php:3) in \getdata.php on line 10
y esto es lo obtengo
GIF89aõ?ÿÌÿ™ÿfÌÌÌÌÌÌ™ÌÌ™™Ì™fÌ™3Ì™Ìf™ÌffÌf3ÌfÌ3fÌ 33Ì3Ì3Ì™™™ff™f™3f™33™3™3ff3f33f3333™Ìf™ff3f3333333 333333333333333333333333!ÿ NETSCAPE2.0!ù !,ûÀpH,ȤrÉl:ŸÐ¨tJ_Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ß ð¸|N¯Ûïø¼~?
Si llamo al script desde otra página con
<img src="getdata.php?id=1">
Se muestra un cuadro que debiera contener la imagen.
este es el script
getdata.php
----------------
<?php require('Connections/Conexion.php'); ?>
<?php
mysql_select_db($database_Conexion, $Conexion);
$query = "SELECT * FROM binary_data WHERE id=$id"
$result = mysql_query($query,$Conexion) or die ("no hay conexion");
$data = mysql_result($result,0,"bin_data");
$type = mysql_result($result,0,"filetype");
header("Content-type: $type");
echo $data;
?>
Alguien puede ayudarme
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)