File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Creating an ObjectInputStream from a Blob! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

Creating an ObjectInputStream from a Blob!

Shekar Atmakur
Ranch Hand

Joined: Oct 24, 2003
Posts: 36
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.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating an ObjectInputStream from a Blob!