Forums Register Login

Creating an ObjectInputStream from a Blob!

+Pie Number of slices to send: Send
Hi,
Could someone help me with a problem i have. Creating an ObjectInputStream from an InputStream crerated by a Blob is throwing an EOFException. Here is a code snippet.



I encounter the EOFException when i create the instance of the ObjectInputStream. See any problem?
Any help is appreciated.

thanks,
shekar

Moderator:
I have already posted this in the IO /Sterams section, but i think it fits in here too.
+Pie Number of slices to send: Send
Shekar,
I'm going to lock this post. We ask people not to cross post as it makes discussion more complicated to follow. (Thanks for pointing out that you did so though.)

I posted a reply in your other thread. I think the problem is more about I/O and Serialization from the message. You can test this out by trying to output the binary stream itself. If this ends up being a JDBC question, PM a sheriff and they can move it back here.

Thanks,
Jeanne
JDBC Forum Moderator
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 1491 times.
Similar Threads
how hibernate stores object in a blob
readObject() throwing EOFException
StreamCurruptedException
Reading From a Binary Large Object(BLOB)
JDBC - BLOB question for Java gurus
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:43:18.