From: sad <sad@bankir.ru>
To: pgsql-sql@postgresql.org
Subject: Re: bytea or blobs?
Date: Wed, 18 Feb 2004 09:14:29 +0300
Message-ID: <200402180914.29318.sad@bankir.ru> (raw)
In-Reply-To: <40322E69.30606@Yahoo.com>
References: <E8D7DFA4-5C92-11D8-B55E-0003938366A4@ntlworld.com>
<40322E69.30606@Yahoo.com>
On Tuesday 17 February 2004 18:08, you wrote:
> I'd recommend to let the application convert the binary
> data to and from base64,
Don't, please don't !
Since you have the good bytea rule to convert so called "binary" data into so
called "text". You have no need another encoding at all.
Generally, the problem is to represent zero (0x00) when input/output. Any
other byte might be stored, dumped, input, output without any problem. Then
why to avoid 8bit chars ?
Bytea notation rule completely resolve the problem of zeroes.
(and also apostrophes :-) naturally)
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-sql@postgresql.org
Cc: sad@bankir.ru
Subject: Re: bytea or blobs?
In-Reply-To: <200402180914.29318.sad@bankir.ru>
* 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