Re: import_bytea function - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: import_bytea function
Date
Msg-id ntb294$loa$1@blaine.gmane.org
Whole thread Raw
In response to Re: import_bytea function  (Jan de Visser <jan@de-visser.net>)
List pgsql-general
Jan de Visser schrieb am 08.10.2016 um 16:11:
> You need to stream the data. Working from memory here, and it's been a long time, but it's something like
>
> rs = conn.executeQuery("SELECT byeta_column FROM foo WHERE bar = ?");
> Blob b = (Blob) rs.getObject(1);

No. getBytes() works fine with the JDBC driver.

The problem is calling toString() on it and sending that via print




pgsql-general by date:

Previous
From: Jan de Visser
Date:
Subject: Re: import_bytea function
Next
From: Thomas Kellerer
Date:
Subject: Re: import_bytea function