aspose 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 Java 8 in Action this week in the Java 8 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: 36599
    
  16
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: 36599
    
  16
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
 
Similar Threads
Callable statement return xml result
Displaying Clob Data in BIRT report
Reading data in a CLOB from BIRT report
how to download a zip file from database?
Java program to Convert java.lang.String to java.sql.CLOB Object