Código PHP:
   <?php session_start(); 
  $conexion = mssql_connect("","","");
 mssql_select_db("dbEliotAlbumFotos",$conexion); 
 $sql2='SELECT ff.FOTO FROM FOTO_FOTOGRAFIAS AS ff 
           INNER JOIN CFG_TIPO_FOTOGRAFIAS AS x ON ff.ID_TIPO_FOTOGRAFIA = x.ID_TIPO_FOTOGRAFIA 
         AND x.FOTO_PRINCIPAL = 1
         WHERE (ff.ID_INGRESO = '.$_GET['id_ingreso'].')';
  $rsImagen = mssql_query($sql2,$conexion);
  $foto = mssql_result($rsImagen,0,"FOTO"); 
header("Content-Type: image/jpeg");
 echo $foto;
 mssql_close($conexion);
  ?>    http://localhost/EliotConsultas_adrian/album_foto_detalle.php?id_ingreso=34009
y si le saco el header me aparecen la serie de símbolos de la imagen.
Qué puede estar pasando? Agradezco cualquier ayuda
 

