Getting binary data out of a postgre database

Diez B. Roggisch deetsNOSPAM at web.de
Fri Jun 24 14:34:05 EDT 2005


> So, rec[0] is an instance, but an instance of what? Since I needed to
> use the PgSQL.PgBytea method on the image before inserting it into the
> database, do I need to use a similar method to undo what PgBytea did to
> it, or am I incorrectly writing this binary data? I tried
> PgSQL.PgUnQuoteBytea(rec[0]), but that didn't work.


What does 

print rec[0]

give you?
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list