From: Chris Hoover <revoohc@sermonaudio.com>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Best way to store files inside db
Date: Wed, 13 Apr 2005 13:06:08 -0400
Message-ID: <425D5180.6020109@sermonaudio.com> (raw)
I am looking for some help/advice. We need to store some files inside
postgres (at least it has been requested of us). What is the best way
to do this? Right now, the files are all human readable text files, but
that could change.
I could store the contents of the human readable files in a text field,
but I believe the requester would really like the real file to be stored
as close to unmodified as possible.
How can I do this? I am thinking to store unmodified, I'll have to use
a bytea field. However, how do I tell the database to insert a file
(say "c:\test.txt") into the table?
Thanks for any help/pointer.
Chris
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: revoohc@sermonaudio.com
Subject: Re: Best way to store files inside db
In-Reply-To: <425D5180.6020109@sermonaudio.com>
References: <425D5180.6020109@sermonaudio.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