binary insert with JDBC - Mailing list pgsql-interfaces

From Sean Reilly
Subject binary insert with JDBC
Date
Msg-id 355776ED.D161D88B@cnri.reston.va.us
Whole thread Raw
List pgsql-interfaces
Can anyone tell me how to insert binary data into
a postgres table using JDBC?  What type field should I use?
Most importantly, how do I create an SQL statement with
binary data?  I thought this could be done with a
PreparedStatement and setBytes() but it doesn't seem to
be implemented in postgres.PreparedStatement.  Is there
some way to encode the binary value into the SQL string
(like hex encoding or something)?

I looked through the docs but couldn't find anything
related to this, but it seems like it might be a common
problem.

Thanks,
Sean

pgsql-interfaces by date:

Previous
From: Byron Nikolaidis
Date:
Subject: ODBC Driver V.0239
Next
From: mike@h178133.nist.gov (Michael Tung)
Date:
Subject: JDBC for postgresql 6.3.2.