X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 574625282B for ; Wed, 15 Jun 2005 09:59:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91389-01 for ; Wed, 15 Jun 2005 12:59:20 +0000 (GMT) Received: from vlo.olsztyn.pl (tranquillity.vlo.olsztyn.pl [80.55.168.86]) by svr1.postgresql.org (Postfix) with ESMTP id A7C5A52823 for ; Wed, 15 Jun 2005 09:59:18 -0300 (ADT) Received: by vlo.olsztyn.pl (Postfix, from userid 1000) id 2729C67654; Wed, 15 Jun 2005 15:00:22 +0200 (CEST) Date: Wed, 15 Jun 2005 15:00:22 +0200 From: Pawel Bernat To: pgsql-php@postgresql.org Subject: Re: FW: How to store binaries and ASCII files in DB Message-ID: <20050615150022.A16107@vlo> References: <09766A6E64A068419B362367800D50C0B58C17@moritz.faps.uni-erlangen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <09766A6E64A068419B362367800D50C0B58C17@moritz.faps.uni-erlangen.de>; from weber@faps.uni-erlangen.de on Wed, Jun 15, 2005 at 12:42:28PM +0200 X-Flush: asmleet X-Discalimer: Of course! X-Operating-System: unix 32bit i686 X-Opinion-About-Mailer: =?iso-8859-2?Q?Mutt_-_jedyny_s=B3uszny?= X-Opinion-About-Header-Reader: 313373 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/9 X-Sequence-Number: 3168 On Wed, Jun 15, 2005 at 12:42:28PM +0200, Weber Matthias wrote: > is their any php code example on how to store files (binary and ASCII) into a postgres db? http://www.php.net/manual/en/function.file-get-contents.php http://www.php.net/manual/en/function.pg-escape-bytea.php http://www.php.net/manual/en/function.pg-escape-string.php http://www.php.net/manual/en/function.pg-query.php p. -- Paweł Bernat; uselessness' lover; select''as email; Slowly and surely the unix crept up on the Nintendo user ...