Re: How do I display an image?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



that did it!  Thank you very much

Patrick Hatcher
Macys.Com
Legacy Integration Developer





                                                                                                                         
                    "Cornelia Boenigk"                                                                                   
                    <poppcorn@cornelia-b       To:     "PGSQL+PHP" <pgsql-php@xxxxxxxxxxxxxx>, "Patrick Hatcher"         
                    oenigk.de>                  <PHatcher@xxxxxxxxx>                                                     
                                               cc:                                                                       
                    10/23/2002 05:36 PM        Subject:     Re: [PHP] How do I display an image?                         
                    Please respond to                                                                                    
                    "Cornelia Boenigk"                                                                                   
                                                                                                                         
                                                                                                                         




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








[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux