Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Storing HashMap or TreeMap in a BLOB Column

 
Surya Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could anybody give some codesnippets of inserting a HashMap or TreeMap into BLOB Oracle COLUMN.

Thanks for your help
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Surya,
You can create a Blob by creating a BinaryStream or byte[] with your data. So you would loop through the datastructure and write it out to a stream.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic