Hi people,
I am having a problem with php. When I select an image in a database and I try show this image I receive this message:
Cannot add header information - headers already sent by (output started at c:\projeto\front-end\exame.php:2) in c:\projeto\front-end\exame.php on line 2
See the source:
<pre>
<body background="fundo3.gif" text="#000000">
<p align="center"><font face="Comic Sans MS" color="#005E5E"><big>Dados do Exame</big></font></p>
<?
Header("Content-type:image/jpg");
// conect to BD
$conn = OCILogon("XXX", "YYY', "KKKK");
$conimg = OCIParse( $conn, "Select img from testeimg where id = 1");
OCIExecute( $conimg );
$k = 1;
while( OCIFetch( $conimg ))
//receive datas of select
$imagem = OCIResult( $conimg, $k );
print "$imagem";
OCILogoff( $conn );
?>
</body>
</pre>
Can anybody help me please?