Re: Can I Save images in postgres? - Mailing list pgsql-general

From Yaroslav Tykhiy
Subject Re: Can I Save images in postgres?
Date
Msg-id D5967786-A2AC-47DD-825E-DAE59FC8986C@barnet.com.au
Whole thread Raw
In response to Re: Can I Save images in postgres?  (John R Pierce <pierce@hogranch.com>)
Responses Re: Can I Save images in postgres?
List pgsql-general
On 09/09/2009, at 10:43 AM, John R Pierce wrote:

> 纪晓曦 wrote:
>> Can I save images in the postgres? How to define? Does the format
>> matters? Can I save JPG/PNG?How?
>
> you can save images as BYTEA data, and the format is totally up to
> your application, as postgres just treats it as a block of bytes.
> however, I generally find it easier to store my images on a file
> system, and just put the file path in the database.

By the way, here's a relatively recent discussion of this issue:

http://archives.postgresql.org/pgsql-general/2009-06/msg00599.php

Yar

pgsql-general by date:

Previous
From: Yaroslav Tykhiy
Date:
Subject: Re: where clauses and multiple tables
Next
From: John R Pierce
Date:
Subject: Re: where clauses and multiple tables