Re: [JDBC] serialized objects and JDBC driver

2001-03-13 Thread David Wall
ByteArrayInputStream bis = new ByteArrayInputStream(data); ObjectInputStream p = new ObjectInputStream(bis); EncryptionInfo ei = (EncryptionInfo)p.readObject(); Are you using setBytes/getBytes in JDBC? That's worked for me when the SQL type is OID on 7.1beta4. David

[JDBC] SQL CHAR type using setByte()

2001-03-13 Thread David Wall
I have a Java byte field that I'm trying to store in the database. It has a value of (byte)'0' which is a binary 48. When I use preparedStatement.setByte() with that value, to store in a Postgresql CHAR field, it only stores a '4'. It's as if the binary 48 were being converted to a String