pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedbyte and PHP
2+ messages / 2 participants
[nested] [flat]
* byte and PHP
@ 2001-09-25 14:28 Martín Marqués <martin@bugs.unl.edu.ar>
2001-09-25 15:55 ` Re: byte and PHP Brent R. Matzelle <bmatzelle@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Martín Marqués @ 2001-09-25 14:28 UTC (permalink / raw)
To: pgsql-php
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
-----------------------------------------------------------------
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: byte and PHP
2001-09-25 14:28 byte and PHP Martín Marqués <martin@bugs.unl.edu.ar>
@ 2001-09-25 15:55 ` Brent R. Matzelle <bmatzelle@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Brent R. Matzelle @ 2001-09-25 15:55 UTC (permalink / raw)
To: 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
--- 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-09-25 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-25 14:28 byte and PHP Martín Marqués <martin@bugs.unl.edu.ar>
2001-09-25 15:55 ` Brent R. Matzelle <bmatzelle@yahoo.com>
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