File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Deserialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Deserialization " Watch "Deserialization " New topic


Navi Lock
Ranch Hand

Joined: Jul 29, 2003
Posts: 39
Guys, need your help in the below.

Need to Deserialize a 'Blob' from Oracle DB.
The Blob is composed of a number of primitive and customized class objects of my application.

What i could achieve, was
1) Retrieve the Blob from DB,
2) retrieve the byte stream,

3) Need to know how to reconstruts the objects back from the stream.

It blows up when i attempt the 3rd step as below

ObjectInputStream is = new ObjectInputStream(new BufferedInputStream(byteStream));
3)Object o = is.readObject();

Any code example would be great.
Thanks in advance,
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

"Navi Nav", you have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.

Failure to comply will result in the removal of your account.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
Supplying the exact error you are receiving would be useful.

Bill Shirley - bshirley -
if (Posts < 30) JavaRanchFAQ);
I agree. Here's the link:
subject: Deserialization
It's not a secret anymore!