public inbox for [email protected]  
help / color / mirror / Atom feed
From: Daniele Varrazzo <[email protected]>
To: Christopher Bader <[email protected]>
Cc: [email protected]
Subject: Re: bug in handling Postgres bytea type?
Date: Fri, 23 Dec 2022 02:58:21 +0000
Message-ID: <CA+mi_8a8mixwEsxaNhpeEOmrH1_Xc2vqCU=uEz0M-RSC8pfo1w@mail.gmail.com> (raw)
In-Reply-To: <CAKvpR7Od=NU2yi=sOf5wiaKU1A+v_T2GJ8+JDdzE1yABFPwyYA@mail.gmail.com>
References: <CAKvpR7Od=NU2yi=sOf5wiaKU1A+v_T2GJ8+JDdzE1yABFPwyYA@mail.gmail.com>

On Fri, 23 Dec 2022 at 02:54, Christopher Bader <[email protected]> wrote:

> I'm having problems reading bytea fields with psycopg2.
>
> Reading a bytea field with cursor.fetchall yields a memoryview object, not
> a bytes or bytearray object, and even when the object is explicitly
> converted to bytes or bytearray, the result is not correct.
>

Define not correct.


view thread (2+ messages)

reply

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: bug in handling Postgres bytea type?
  In-Reply-To: <CA+mi_8a8mixwEsxaNhpeEOmrH1_Xc2vqCU=uEz0M-RSC8pfo1w@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox