Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1BB904761DB for ; Wed, 23 Oct 2002 20:36:23 -0400 (EDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by postgresql.org (Postfix) with ESMTP id 4E25C475EB9 for ; Wed, 23 Oct 2002 20:36:22 -0400 (EDT) Received: from [212.227.126.162] (helo=mrelayng3.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 184Vz6-0000tP-00; Thu, 24 Oct 2002 02:36:24 +0200 Received: from [213.7.13.236] (helo=ENNUQCGTVPMVMIPT) by mrelayng3.kundenserver.de with asmtp (Exim 3.35 #1) id 184Vz5-00067Q-00; Thu, 24 Oct 2002 02:36:24 +0200 Reply-To: "Cornelia Boenigk" From: "Cornelia Boenigk" To: "PGSQL+PHP" , "Patrick Hatcher" Subject: Re: How do I display an image? Date: Thu, 24 Oct 2002 02:36:35 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/52 X-Sequence-Number: 1567 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