File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deserialization

 
Navi Lock
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Bill Shirley
Ranch Hand
Posts: 457
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Supplying the exact error you are receiving would be useful.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic