From: Kent L. Nasveschuk <kent@wareham.k12.ma.us>
To: Rudi Starcevic <rudi@oasis.net.au>
Cc: Postgres-Admin list <pgsql-admin@postgresql.org>
Subject: Re: pg_lo_import alternative ...
Date: 29 Nov 2003 07:32:32 -0500
Message-ID: <1070109152.2065.64.camel@1134> (raw)
In-Reply-To: <20031127044308.M16952@oasis.net.au>
References: <W6220820784116461069863022@portal>
<20031127044308.M16952@oasis.net.au>
Your method sounds very interesting for storing images. I'd be
interested in knowing what other attributes you store with the images.
My interest in storing images is for documents that pertain to personnel
records such as copy of certifications, licenses, diploma, training
courses, personnel evaluations. Many are scanned images.
create table external_object(
exobid integer not null default
nextval('external_object_seq'::text),
exob OID not null,
useradd_eid integer references employee,
insert_timestamp timestamp,
mod_timestamp timestamp default now(),
mimetype varchar(30) not null default 'jpeg',
description varchar(30) not null,
filename varchar(100) not null,
table_ref varchar(20),
key_id_ref integer,
flags char(2),
doctype_version varchar(4),
constraint external_obj_pk primary key(exobid)
);
When you do backups do you use pg_dump or are you able to shutdown
postgres to use something like rsync?
On Wed, 2003-11-26 at 23:51, Rudi Starcevic wrote:
> Hi,
>
> > Anyone that that is using Postgres for storage and retrival of
> > images please post your experiences.
>
> I've been very happy with a web application I built which stores
> images in Postgresql in text format. I use PHP to base_64 encode
> the binary image file into a text string and store that.
>
> I can send you a PHP class which I use to encode/decode the
> images and inserts them into a table.
> Email me off list if your keen.
>
> Cheers
> Rudi.
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
--
Kent L. Nasveschuk <kent@wareham.k12.ma.us>
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-admin@postgresql.org
Cc: kent@wareham.k12.ma.us, rudi@oasis.net.au
Subject: Re: pg_lo_import alternative ...
In-Reply-To: <1070109152.2065.64.camel@1134>
References: <W6220820784116461069863022@portal> <20031127044308.M16952@oasis.net.au> <1070109152.2065.64.camel@1134>
* 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