Received: from ensam.inra.fr (ensam.inra.fr [147.99.0.1]) by postgresql.org (Postfix) with ESMTP id 04157474E49; Wed, 3 Apr 2002 09:47:31 -0500 (EST) Received: from ensam.inra.fr (localhost [127.0.0.1]) by ensam.inra.fr (8.10.1/8.10.1) with ESMTP id g33GlV322170; Wed, 3 Apr 2002 16:47:33 GMT Received: from hhunt.ensam.inra.fr (hhunt.ensam.inra.fr [147.99.18.108]) by ensam.inra.fr (8.10.1/8.10.1) with ESMTP id g33GlTe22160; Wed, 3 Apr 2002 16:47:31 GMT Message-Id: <5.0.0.25.0.20020403164135.00ad0380@ensam.inra.fr> X-Sender: fabrejc@ensam.inra.fr X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Wed, 03 Apr 2002 16:47:29 +0200 To: pgsql-sql@postgresql.org, pgsql-php@postgresql.org From: Jean-Christophe FABRE Subject: bytea or large object Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200204/4 X-Sequence-Number: 1028 Hi, I would like to store .pdf files in a database, which is accessed through a PHP interface. which is the best way to store binary data? - bytea? (with the tricky handling of escape chars) - large objects? thanks JC PS: I didn't found any example of scripts using bytea in PHP, does someone has some? _________________________________________________________ Jean-Christophe FABRE INRA - UMR Sol & Environnement tel: +33 (0)4 99 61 23 51 2, place Viala fax: +33 (0)4 67 63 26 14 34060 MONTPELLIER cedex 1 FRANCE