|
I always serialize the object to a byte[] and then use setBinaryStream(),
e.g. byte[] b = ... // serialize arbitrary object to byte[] ByteArrayInputStream ins = new ByteArrayInputStream(b); ps.setBinaryStream(psParamIndex, ins, b.length); I've found this to be reliable. FYI Problems with using setObject () with blobs is not specific to Derby. I've had to use the above with MySQL and Oracle as well. bw Suavi Ali Demir wrote: How about you first serialize your object into a byte[] and then do a setBytes() ? And then to read it back you can do getBytes() and then deserialize from that byte[]. Would that work? Regards, Ali --- Mithun Ruikar <[EMAIL PROTECTED]> wrote: |
- Re: How to set value to Blob field of derby-made-table. Barnet Wagman
- Re: How to set value to Blob field of derby-made-tabl... Mithun Ruikar
