Re: Insert ImageFile in PostgreSQL

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: "silasju(at)gmail(dot)com" <silasju(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Insert ImageFile in PostgreSQL
Date: 2005-08-05 07:23:06
Message-ID: 1123226587.15416.90.camel@sabrina.peacock.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am Dienstag, den 02.08.2005, 08:52 -0700 schrieb silasju(at)gmail(dot)com:
> I'm sorry, but I know only the basics about DBMs, but I think is not
> possible to put a image file INSIDE a database. You can put in a
> database the path of the file...
>
> (Maybe I'm wrong...)

sorry to say that, but indeed you are ;)
Postgres has 2 ways to accomplish this:

one is to use large objects (lo) which is
a bit painfull with the interface and w/
backups.

the other is just to store the file data
in a bytea field, which is limited in
size (1GB) and requires you to fetch the
complete file data at once.

--
Tino Wildenhain <tino(at)wildenhain(dot)de>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2005-08-05 07:30:19 Re: wanting to use postgres with python - WHAT am I
Previous Message Gregory Youngblood 2005-08-05 06:09:09 Re: DNS vs /etc/hosts