Hello,
In my application I get an EOF Exceptoin when I try to read a Blob. Here's the code fragment:
The size of the blobs varies around 600. Most of the times this code works.
What is causing this exception to occur? Could it be a problem with the database? The blobs are not stored proberly or is there a maximum amout of data that can be read with read object?
Thanks in advance
Sjakie
---------------------------------------------
Yes, the world is full of strange people.
In my application I get an EOF Exceptoin when I try to read a Blob. Here's the code fragment:
Code:
Blob blob = null;
ObjectInputStream oin = null;
Object object1 = null;
java.rmi.MarshalledObject object2 = null;
Object object3 = null;
object1 = oin.readObject(); //eof exception
oin.close();
object2 = (java.rmi.MarshalledObject) object1;
object3 = object2.get();
The size of the blobs varies around 600. Most of the times this code works.
What is causing this exception to occur? Could it be a problem with the database? The blobs are not stored proberly or is there a maximum amout of data that can be read with read object?
Thanks in advance
Sjakie
---------------------------------------------
Yes, the world is full of strange people.