Re: Displaying image from php script displays string

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: Displaying image from php script displays string
Дата
Msg-id 504F618C.8010709@iol.ie
обсуждение исходный текст
Ответ на Displaying image from php script displays string  (Alexander Reichstadt <lxr@me.com>)
Список pgsql-general
On 11/09/2012 14:24, Alexander Reichstadt wrote:
>
>
> What am I doing wrong?
>

What version of PG are you using? The default output format of bytea
changed from "escape" to "hex" a version or two ago - try changing it to
"escape" and see if that makes a difference:

  ALTER DATABASE xxxxx SET bytea_output='escape';

BTW, it's a REALLY bad idea to build literal SQL queries from input
values, as you're doing - you should use parameters and
pg_query_params() instead.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie


В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Displaying image from php script displays string
Следующее
От: John R Pierce
Дата:
Сообщение: AIX and ipv6