Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/03/2011, 09:31
oscarbt
 
Fecha de Ingreso: abril-2009
Ubicación: Colombia
Mensajes: 949
Antigüedad: 15 años
Puntos: 27
Respuesta: sugerencia...como podria hacer esto?

Si, para mostrar la foto hago lo siguiente:

Código PHP:
Ver original
  1. <?php
  2.  
  3. $datos = $fila["FOTO"];
  4. $tipo = $fila["TIPO"];
  5. $nombre = $fila["NOMBRE"];
  6. $peso = $fila["PESO"];
  7.  
  8. header("Content-type: $tipo");
  9. header("Content-length: $peso");
  10. echo $datos;
  11.  
  12.  
  13.  
  14. ?>

Peroo me sale este error:

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\sistema_egresados\info_personal.php :15) in C:\AppServ\www\sistema_egresados\info_personal.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\sistema_egresados\info_personal.php :15) in C:\AppServ\www\sistema_egresados\info_personal.php on line 79


y ademas en vez de mostrar la foto, se muestran miles de caracteres extraños......como deberia entonces mostrar la imagen?