Search Postgresql Archives

Re: import_bytea function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux