Re: how to read bytea field

From: Markus Schiltknecht <markus(at)bluegap(dot)ch>
To: marcelo Cortez <jmdc_marcelo(at)yahoo(dot)com(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to read bytea field
Date: 2007-01-24 14:29:18
Message-ID: 45B76D3E.5000604@bluegap.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

marcelo Cortez wrote:
>> Are you sure you tested with a real bytea field?
>
> Yeah , i store bytea using encode function , how you
> say .

I never said 'use encode function to store bytea'. I tried to explain
that encode returns TEXT.

> The field of my table is bytea type , and store real
> bytea data in this field.

That's contradictory to the above. Please show me exactly what you do,
please (the INSERT as well as the SELECT you want to use).

> I think my mistake was use bytea field.
> I thinking in turn this field to text and use
> decode/encode for storage binary data.

That sounds like wasting diskspace and I/O bandwith.

Regards

Markus

Responses

Browse pgsql-general by date

  From Date Subject
Next Message marcelo Cortez 2007-01-24 14:54:11 Re: how to read bytea field
Previous Message Shoaib Mir 2007-01-24 14:25:31 Re: how to read bytea field