Skip site navigation (1) Skip section navigation (2)

Bytea/Base64 encoders for libpq - interested?

From: Joerg Hessdoerfer <Joerg(dot)Hessdoerfer(at)sea-gmbh(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Bytea/Base64 encoders for libpq - interested?
Date: 2001-08-28 09:07:32
Message-ID: 5.1.0.14.0.20010828110111.00b07bd0@192.168.0.1 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Hi!

Please find attached some very simple encoders/decoders for bytea and base64.
Bytea encoder is very picky about what it leaves unescaped - basically the 
base64
char set ;-)

Since this seems to be a very poorly documented but much asked-for thing, I 
thought
you would maybe like to add this code to libpq (so that everyone benefits).

I'm aware that function renames might be necessary, though.
If you like, I could make the code fit into libpq, and send diffs.

Any comments/interests?

Greetings,
	Joerg

Attachment: simple-enc.tar.gz
Description: application/octet-stream (3.7 KB)

Responses

pgsql-hackers by date

Next:From: Alessio BragadiniDate: 2001-08-28 09:13:21
Subject: Re: bugs - lets call an exterminator!
Previous:From: Bruno MattarolloDate: 2001-08-28 08:58:32
Subject: 7.1.3, IRIX 6.5 and gcc

pgsql-patches by date

Next:From: Karel ZakDate: 2001-08-28 09:55:28
Subject: Re: Bytea/Base64 encoders for libpq - interested?
Previous:From: Barry LindDate: 2001-08-28 05:48:33
Subject: Re: [PATCHES] Attempt to clean up ExecSql() in JDBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group