I'm having big problems with Oracle 8i writing and reading
Java objects. Basically, it writes fine using the oracle.sql.BLOB class
Example code:
(this is done after running a select for update on the row)
Sometimes (but not all the time) the read fails and throws the following exception:
java.io.StreamCorruptedException: Caught EOFException while reading the stream header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:845)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
The code to read the BLOB back is like this:
Any suggestions or tips welcome
AFM
[ Edited by Dave to format code ]
[ June 25, 2002: Message edited by: David O'Meara ]