This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we store Objects In DATABASE..?

 
Mortin kim
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.,

can we store objects in database,if so how..?
can any one send me the code.

Thanks and regards
Kim.
 
Campbell Ritchie
Sheriff
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought, why not serialize it to a byte[] array and then put it in the database as a CLOB?

I found this article using Google.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34371
345
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Campbell Ritchie:
I thought, why not serialize it to a byte[] array and then put it in the database as a CLOB?

I think Campbell means a BLOB. Blobs are for binary data (bytes) and Clobs are for character date (chars.)
 
Campbell Ritchie
Sheriff
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right. I was mistaken; BLOB is correct. Sorry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic