Subject | Re: [firebird-php] FB+PHP - Display image |
---|---|
Author | Jean Lopes - TSA |
Post date | 2004-01-16T19:47:05Z |
for all participants, Sorry for the cross-posting, but this is a very
interesting tip.
Para tos os particiantes, desculpe pelo cross-posting mas é uma dica
interessante.
Milan,
I create a script like this and it works. The I put it in the problematic
script, put the blob-Echo in Coment and ..
It don´t work. The same error.
I erased the lines where I have the conection variabled (require
(config_conect.php)) from it and then it works. I think that must be the
Content-type tag from required script is in conflict with the Content-type
from the principal script.
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@...
interesting tip.
Para tos os particiantes, desculpe pelo cross-posting mas é uma dica
interessante.
Milan,
I create a script like this and it works. The I put it in the problematic
script, put the blob-Echo in Coment and ..
It don´t work. The same error.
I erased the lines where I have the conection variabled (require
(config_conect.php)) from it and then it works. I think that must be the
Content-type tag from required script is in conflict with the Content-type
from the principal script.
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 2:57 PM
Subject: Re: [firebird-php] FB+PHP - Display image
> Jean Lopes - TSA wrote:
> > 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.
>
> Does it work when you load image from local file and dump it?
> Something like this:
>
> $fp = fopen('some.jpg', 'r');
> $image = fread($fp, filesize('some.jpg'));
> fclose($fp);
>
> header("Content-type: image/jpg");
> headers_sent();
> echo $image;
> exit();
>
> --
> 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/
>
>