Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and Relational Databases and the fly likes Storing HashMap or TreeMap in a BLOB Column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Storing HashMap or TreeMap in a BLOB Column" Watch "Storing HashMap or TreeMap in a BLOB Column" New topic
Author

Storing HashMap or TreeMap in a BLOB Column

Surya Ram
Greenhorn

Joined: Aug 09, 2004
Posts: 7
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

Joined: May 26, 2003
Posts: 32501
    
214

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
Have you checked out Aspose?
 
subject: Storing HashMap or TreeMap in a BLOB Column
 
It's not a secret anymore!