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 Read Serialized Object stored as CLOB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Read Serialized Object stored as CLOB" Watch "Read Serialized Object stored as CLOB" New topic
Author

Read Serialized Object stored as CLOB

Alok Panda
Greenhorn

Joined: May 11, 2008
Posts: 22
Could some body help me in reading a Serializable object stored as CLOB in the database?

Regards,
Alok
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40034
    
  28
How do you get a Java serialised object into a CLOB in the first place?
Alok Panda
Greenhorn

Joined: May 11, 2008
Posts: 22
Actually I am trying to retrieve it from a product database. The column describes it as "Serialized object".
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40034
    
  28
Surely a CLOB is simply text? It should print to screen easily.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Originally posted by Alok Panda:
Actually I am trying to retrieve it from a product database. The column describes it as "Serialized object".


Hmm. Odd choice of data type. CLOBs should store character data, so its strange to have put anything else in there.

What product are you using? Do you own the data model?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Read Serialized Object stored as CLOB