Re: import_bytea function

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: import_bytea function
Date: 2016-10-08 15:10:31
Message-ID: ntb294$loa$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2016-10-08 15:13:12 Re: import_bytea function
Previous Message Jan de Visser 2016-10-08 14:11:53 Re: import_bytea function