Re: How do I display an image?

Поиск
Список
Период
Сортировка
От Cornelia Boenigk
Тема Re: How do I display an image?
Дата
Msg-id E184Vz5-00067Q-00@mrelayng3.kundenserver.de
обсуждение исходный текст
Ответ на How do I display an image?  ("Patrick Hatcher" <PHatcher@macys.com>)
Список pgsql-php
Hi Patrick

Before storing the binary data in the BYTEA-Field use

pg_escape_bytea($imagedata)

After retrieving the imagedata from the table you must remove the slashes
the above function added. Use stripCslashes().

$image = stripcslashes($imagedata);

This works for me;-)
pg_escape_bytea() is available since php 4.2.0.

regards
Conni



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

Предыдущее
От: "Patrick Hatcher"
Дата:
Сообщение: How do I display an image?
Следующее
От: Carlos García Gómez
Дата:
Сообщение: Problems with OIDs