aspose file tools*
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
Author

Deserialization

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,
-Navi
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

"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.

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [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 - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
 
 
subject: Deserialization