Re: How do I display an image? - Mailing list pgsql-php

From Cornelia Boenigk
Subject Re: How do I display an image?
Date
Msg-id E184Vz5-00067Q-00@mrelayng3.kundenserver.de
Whole thread Raw
In response to How do I display an image?  ("Patrick Hatcher" <PHatcher@macys.com>)
List 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 by date:

Previous
From: "Patrick Hatcher"
Date:
Subject: How do I display an image?
Next
From: Carlos García Gómez
Date:
Subject: Problems with OIDs