Subject | Re: [firebird-php] FB+PHP - Display image |
---|---|
Author | Jean Lopes - TSA |
Post date | 2004-01-16T16:44:23Z |
thaks for your answer, but in my case i can´t make the image apears. The
browser only shows a long sequence of strange characters. i´d try some many
diferentes sintaxes for Content-type but the result are ever the same.
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@...
browser only shows a long sequence of strange characters. i´d try some many
diferentes sintaxes for Content-type but the result are ever the same.
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@...
----- Original Message -----
From: "Milan Babuskov" <albis@...>
To: <firebird-php@yahoogroups.com>
Sent: Friday, January 16, 2004 10:01 AM
Subject: Re: [firebird-php] FB+PHP - Display image
> Jean Lopes - TSA wrote:
> > 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 ?
>
> Quoted post from this list (25.06.2003.)
>
> $sst = "SELECT image, image_type FROM images_tbl WHERE images_id=123";
> $result = ibase_query($sst, $f);
> if(empty($result)) echo SQL_error($f,$sst)."<BR>";
> $tmprow=SQL_fetch_object($result,0);
> $image = $tmprow->image;
>
> header("Content-type: ".$tmprow->image_type);
> headers_sent();
>
> ibase_blob_echo($image);
>
> I guess the problem is capital C in Content-type
>
> --
> Milan Babuskov
> http://fbexport.sourceforge.net
>
>
>
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/firebird-php/
>
> To unsubscribe from this group, send an email to:
> firebird-php-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>