Re: [JDBC] serialized objects and JDBC driver

2001-03-13 Thread jlemcke
It might be worth your while having a look at JSX as an alternative to standard Java serialization. JSX serializes Java objects to XML which, being plain text, may be easier to manage. I haven't done any serious work with JSX yet but it seems to work well in the trials I've done. Check out http:

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] serialized objects and JDBC driver

2001-03-13 Thread Stuart Barlow
I am attempting to serialize objects into Postgresql using the JDBC driver. I am attempting to do this the standard way using Object and Byte streams. To store the object to the database in a text (blob) field I use the following code to turn my object into a byte[]. // create the