pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brent R. Matzelle <bmatzelle@yahoo.com>
To: pgsql-php@postgresql.org
Subject: Re: byte and PHP
Date: Tue, 25 Sep 2001 08:55:09 -0700 (PDT)
Message-ID: <20010925155509.93284.qmail@web13003.mail.yahoo.com> (raw)
In-Reply-To: <20010925142820.8A1072AB46@bugs.unl.edu.ar>

You would use the oid PostgreSQL data type and use the PHP
pg_lo* commands (http://us.php.net/manual/en/ref.pgsql.php). 
Here is a quick tutorial on how to import and export files:
http://www.newbienetwork.net/sections.php?op=printpage&artid=35

Brent

--- Martín Marqués <martin@bugs.unl.edu.ar> wrote:
> I´m about to do some web aplications that will save data in a
> postgreSQL 
> database, but I have one problem: I don´t understand the way
> postgreSQL saves 
> byte files.
> 
> I heard about bytea and Large Objects. Are they the same?
> 
> And how do I insert, say, pdf files in my database?
> 
> I looked for examples, but didn´t find much (in PHP,
> obviously).
> 
> Saludos... :-)
> 
> -- 
> Porqué usar una base de datos relacional cualquiera,
> si podés usar PostgreSQL?
>
-----------------------------------------------------------------
> Martín Marqués                  |        mmarques@unl.edu.ar
> Programador, Administrador, DBA |       Centro de Telematica
>                        Universidad Nacional
>                             del Litoral
>
-----------------------------------------------------------------
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com



view thread (2+ messages)

Message-ID: <20010925155509.93284.qmail@web13003.mail.yahoo.com>
Permalink:  ../20010925155509.93284.qmail@web13003.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010925155509.93284.qmail@web13003.mail.yahoo.com

 · 

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-php@postgresql.org
  Cc: bmatzelle@yahoo.com
  Subject: Re: byte and PHP
  In-Reply-To: <20010925155509.93284.qmail@web13003.mail.yahoo.com>
  References: <20010925142820.8A1072AB46@bugs.unl.edu.ar> <20010925155509.93284.qmail@web13003.mail.yahoo.com>

* 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