pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Christophe FABRE <jean-christophe.fabre@ensam.inra.fr>
To: pgsql-sql@postgresql.org
To: pgsql-php@postgresql.org
Subject: bytea or large object
Date: Wed, 03 Apr 2002 16:47:29 +0200
Message-ID: <5.0.0.25.0.20020403164135.00ad0380@ensam.inra.fr> (raw)


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




view thread (7+ messages)  latest in thread

Message-ID: <5.0.0.25.0.20020403164135.00ad0380@ensam.inra.fr>
Permalink:  ../5.0.0.25.0.20020403164135.00ad0380@ensam.inra.fr/
Also on:    postgresql.org/message-id/5.0.0.25.0.20020403164135.00ad0380@ensam.inra.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jean-christophe.fabre@ensam.inra.fr, pgsql-php@postgresql.org
  Subject: Re: bytea or large object
  In-Reply-To: <5.0.0.25.0.20020403164135.00ad0380@ensam.inra.fr>
  References: <5.0.0.25.0.20020403164135.00ad0380@ensam.inra.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox