Re: Storing images as BYTEA or large objects

From: "Gevik Babakhani" <pgdev(at)xs4all(dot)nl>
To: "'Koen Vermeer'" <koen(at)vermeer(dot)tv>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Storing images as BYTEA or large objects
Date: 2008-02-13 06:37:59
Message-ID: 001e01c86e0a$f988f590$0a01a8c0@gevmus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Which programming language are you using?

Regards,
Gevik Babakhani
------------------------------------------------
PostgreSQL NL http://www.postgresql.nl
TrueSoftware BV http://www.truesoftware.nl
------------------------------------------------

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Koen Vermeer
> Sent: Tuesday, February 12, 2008 11:41 PM
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] Storing images as BYTEA or large objects
>
> Hi,
>
> I would like to store binary data in a PostgreSQL database.
> The size of the data is about 2 to 20 MB and is always stored
> or retrieved as a block (i.e., I do not need to get only part
> of the data). As I understand, I have two options for storing
> this data: As BYTEA or as large objects. As I understand, the
> disadvantage of the first method is that I need to write a
> custom routine to escape some binary values - or is there
> some code available to do this? The disadvantage of large
> objects is their existence outside of the main database,
> which may be problematic when backing up a database. In
> addition, I need special routines to store/retrieve the data.
>
> My two questions are: Is this summary correct? And: Which
> method should I choose?
>
> Best,
> Koen
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org/
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message SunWuKung 2008-02-13 07:21:52 dynamic crosstab
Previous Message bh yuan 2008-02-13 05:35:37 Re: character conversion problem about UTF-8-->SHIFT_JIS_2004