| From: | "Brent R(dot) Matzelle" <bmatzelle(at)yahoo(dot)com> |
|---|---|
| To: | pgsql-php(at)postgresql(dot)org |
| Subject: | Re: byte and PHP |
| Date: | 2001-09-25 15:55:09 |
| Message-ID: | 20010925155509.93284.qmail@web13003.mail.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-php |
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
--- Martn Marqus <martin(at)bugs(dot)unl(dot)edu(dot)ar> wrote:
> Im about to do some web aplications that will save data in a
> postgreSQL
> database, but I have one problem: I dont 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 didnt find much (in PHP,
> obviously).
>
> Saludos... :-)
>
> --
> Porqu usar una base de datos relacional cualquiera,
> si pods usar PostgreSQL?
>
-----------------------------------------------------------------
> Martn Marqus | mmarques(at)unl(dot)edu(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | roypgsqlphp | 2001-09-25 19:32:18 | running out of persistent connections |
| Previous Message | Martín Marqués | 2001-09-25 14:28:16 | byte and PHP |