From: | Barry Lind <barry(at)xythos(dot)com> |
---|---|
To: | David Garnier <david(dot)garnier(at)etudier-online(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Retrieving binary data |
Date: | 2002-07-05 19:12:45 |
Message-ID: | 3D25EFAD.5010503@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
David,
If I understand what you are trying to do correctly, using a binary
cursor should solve your problem. See the docs on the "declare [binary]
cursor" SQL command.
thanks,
--Barry
David Garnier wrote:
>Hello,
>
>I need to retrieve the binary representation of a custom type. I can retrieve the type just fine with the standard method, but the results of getBytes is altered. getString shows just the right thing, but I need the binary. I looked at the source of the driver, and I still don't know exactly what I'm supposed to do. It seems to me that the QueryExecutor is able to fetch a binary tuple, but I don't know how to request one.
>
>Performance is my main problem, so I would like a fast solution. Thanks for helping.
>
>Best regards,
>David Garnier
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org
>
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Ramsey | 2002-07-05 19:37:48 | BYTEA transport |
Previous Message | Barry Lind | 2002-07-05 19:08:45 | Re: PreparedStatement and DB default values |