File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BLOB versus clob

 
Surya Ram
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a TreeMap which I need to store it into the Database. I am right now using BLOB datatype by serializing the TreeMap. Could anybody suggest if we can use CLOB instead of BLOB?

Thank you,
 
Scott Dunbar
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I think you're doing the correct thing using a CLOB. There is binary data in a serialize Java class and you don't want the DB doing some character conversion for you when you least expect it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic