I'm storing a serialized object graph on a DB2 table into a column of type BLOB. I can successfully retrieve this column into
java as a byte[]. But when I try to deserialize it, it comes back NULL. If I take DB2 out of the picture (ie, run a
test where I serialize the object graph then turn around and deserialize it) - it works fine.
barr = (byte[])ngrfRequestWipDao.read(ngrfRequestWipTO);
// Deserialize object graph
ObjectInputStream in = new ObjectInputStream(
new ByteArrayInputStream(barr));
// Deserialize the object
mainRequest = (MainRequestIface) in.readObject();
...mainRequest is NULL at this point.
Any insight you can provide would be greatly appreciated. Thanks!