From: Lincoln Yeoh <lyeoh@pop.jaring.my>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: drevil@sidereal.kz
Cc: pgsql-general@postgresql.org
Subject: Re: Data type for storing images?
Date: Tue, 13 Mar 2001 15:31:21 +0800
Message-ID: <3.0.5.32.20010313153121.009643c0@192.228.128.13> (raw)
In-Reply-To: <23574.984361701@sss.pgh.pa.us>
References: <20010311223818.18682.qmail@mailhost.sidereal.kz>
<20010311223818.18682.qmail@mailhost.sidereal.kz>
At 08:48 PM 11-03-2001 -0500, Tom Lane wrote:
><drevil@sidereal.kz> writes:
>> I would like to store some images in my Postgres database. These will
>> all be thumbnails, limited to 4k or 5k. I know that PG has an 8k row
>
>bytea is probably your best bet. The 8k limit is toast in 7.1, btw.
What's bytea ?
How do I store and retrieve 0x00 and other binary stuff like this?
Right now I store stuff like this in files on the filesystem. Storing as
base64 in text doesn't sound attractive :). What are the advantages of
using BLOBs vs files on the filesystem?
Cheerio,
Link.
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: lyeoh@pop.jaring.my, tgl@sss.pgh.pa.us, drevil@sidereal.kz, pgsql-general@postgresql.org
Subject: Re: Data type for storing images?
In-Reply-To: <3.0.5.32.20010313153121.009643c0@192.228.128.13>
* 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