Re: Data type for storing images? - Mailing list pgsql-general

From Lincoln Yeoh
Subject Re: Data type for storing images?
Date
Msg-id 3.0.5.32.20010313153121.009643c0@192.228.128.13
Whole thread Raw
In response to Re: Data type for storing images?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Data type for storing images?
List pgsql-general
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.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: database access
Next
From: Alex Howansky
Date:
Subject: "critical mass" reached?