This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes Read Serialized Object stored as CLOB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 32675
    
    4
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: 32675
    
    4
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Read Serialized Object stored as CLOB
 
Similar Threads
how to download a zip file from database?
Displaying Clob Data in BIRT report
Callable statement return xml result
Java program to Convert java.lang.String to java.sql.CLOB Object
Reading data in a CLOB from BIRT report