• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read Serialized Object stored as CLOB

 
Alok Panda
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could some body help me in reading a Serializable object stored as CLOB in the database?

Regards,
Alok
 
Campbell Ritchie
Sheriff
Posts: 51468
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you get a Java serialised object into a CLOB in the first place?
 
Alok Panda
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I am trying to retrieve it from a product database. The column describes it as "Serialized object".
 
Campbell Ritchie
Sheriff
Posts: 51468
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surely a CLOB is simply text? It should print to screen easily.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic