Subject FB+PHP - Display image
Author Jean Lopes - TSA
I had a database with jpg images stored in a sub-type 0 blob filed.

I tryed to display this images using the follow script:

.
.
.
$data = ibase_fechtobject($query);
$blobdata = ibase_blob_info();
$pic = ibase_blob_get,$data->FOTO,$blobdata[0]);
header("content-type : image/jpeg");
print_r($pic);
...close database etc.
.
.
.
But my browser show me only character like the image is a text.

anybody have an exemple to share with me ?


Jean Paul Lopes
Sócio-Gerente

TSA Tecnologia Sistemas e Automação Ltda.
http://www.tsa-sistemas.com.br
Rua Cel Sarmento, 1699 / 101
94010-031 - Gravataí - RS
Fone/Fax: 51 488.3608 / 3042.6084

Membro da Comunidade Firebird de Língua Portuguesa
http://www.comunidade-firebird.org
Fazendo o Firebird falar português
jean.lopes@...

[Non-text portions of this message have been removed]