Sobre imagenes
| From: | Miguel Angel Hernández Lázaro | Date: | Wed, 29 Jan 2003 16:37:19 +0000 |
| Subject: | Sobre imagenes | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-31779@lists.php.net to get a copy of this message | ||
Me sigue sin salir el contenido de la imagen el navegador interpreta lo que
le envía como si fuera HTML. Si pongo la siguiente linea
header("Content-Type: image/jpg"); me dice que Warning: Cannot add header
information - headers already sent by (output started at
E:\WEBS\pruebas\FOTO.PHP:7)
No se que está pasando la questión es que no consigo ver la imagen que es lo
que quiero..
Si me podéis ayudar muchas gracias a todos..
El código es el siguiente:
<html>
<head>
<title>Documento sin título</title>
</head>
<body>
<?php
header("Content-Type: image/jpg");
$host="127.0.0.1:c:\delfin\delfin.ibs";
$usuario= "DELFIN";
$password = "delfin";
$conexion = ibase_connect($host,$usuario,$password);
$sql = "SELECT FOTO FROM FOTOS WHERE ID=1";
$consulta = ibase_query($conexion,$sql);
while($R=ibase_fetch_row($consulta)){
ibase_blob_echo($R[0]);
}
ibase_free_result($consulta);
ibase_close($conexion);
?>
</body>
</html>
La salida es:
ÿØÿàJFIFÿÛC
ÿÛC
ÿÀàEUR"ÿÄ
ÿĵ}!1AQa"q2'¡#B±ÁRÑð$3br'
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzf"...??^?S'""*--~(tm)s¢£¤¥
¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
ÿĵw!1AQaq"2B'¡±Á #3RðbrÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz'f"...??^?S'""*--~(tm)s
¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ
?âþ$y-^½Ù¾_/÷zUpÿ uI"ñ%"?ÿ\ë§Õõ~?²ïczHåýÝy×fo䵸²'
ÿë?ÖÔ`êòÕ"{(tm)×?¹¹õDzÌñË8ëZ?ù¿»y$òëÍtßÏ-Ç
Attachment: [application/ms-tnef] winmail.dat
Attachment: [application/ms-tnef] winmail.dat