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

Using a psycopg2 converter to retrieve bytea data from PostgreSQL

From: Andy Casey <andycasey(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Using a psycopg2 converter to retrieve bytea data from PostgreSQL
Date: 2012-05-10 08:26:56
Message-ID: CAKQcK5M6--s0O08+TMOPfSfFGdU3Z0sYLDyiUhrqKYwKTLG4WA@mail.gmail.com (view raw or flat)
Thread:
Lists: psycopg
Hi there,

I have used psycopg2's adapters and converters in the past with numeric[]
arrays in PostgreSQL, and now I'm trying to use them with binary data types
(bytea). I've outlined my problem in detail with some test code which
illustrates what works (without adapters/converters), and how it fails when
I build my working code into using an adapter and converter:

http://stackoverflow.com/questions/10529351/using-a-psycopg2-converter-to-retrieve-bytea-data-from-postgresql

Would you mind taking a look and providing some advice?

Thanks,
Andy

Responses

psycopg by date

Next:From: Daniele VarrazzoDate: 2012-05-10 21:43:22
Subject: Re: Using a psycopg2 converter to retrieve bytea data from PostgreSQL
Previous:From: Daniele VarrazzoDate: 2012-05-09 10:22:47
Subject: Re: Mixing DictConnection and LoggingConnection

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