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"2�B'¡±Á #3RðbrÑ
$4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz'f"...??^?S'""*--~(tm)s
¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ
?âþ$y-^½Ù¾_/÷zUpÿ uI"ñ%"?ÿ\ë§Õõ~?²ïczHåýÝy×fo䵸²'
ÿë?ÖÔ`êòÕ"{(tm)×?¹¹õDzÌñË8ëZ?ù¿»y$òëÍtßÏ-Ç