HashMap issues with large value storage

Discussion in 'Java' started by ragz_82, Aug 5, 2009.

  1. ragz_82

    ragz_82

    Joined:
    Apr 8, 2009
    Messages:
    9
    I need to store string values (whose sizes range from 30000 to 70000 characters) as a Key value pair in my application.

    Instead of storing these in my Java code, I created CLOB fields in the database for storage. I store these values in a HashMap. During storage, when I print the length of the values, strangely all the lengths are less by 13 characters. Even though I confirmed that the values have not got truncated.

    When I retrieve these values from the HashMap, I get NULL for the values... Kindly suggest if you have any suggestions.

    Thanks,
    Raghu
    ragz_82, Aug 5, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken

    Replace value in HashMap?

    Ken, Jul 7, 2004, in forum: Java
    Replies:
    7
    Views:
    48,679
    kk_oop
    Jul 7, 2004
  2. Vince Darley
    Replies:
    4
    Views:
    4,420
    emilchacko
    Mar 2, 2010
  3. sarathy
    Replies:
    2
    Views:
    661
    sarathy
    Jul 17, 2006
  4. Rakesh
    Replies:
    10
    Views:
    12,176
    Mike Schilling
    Apr 8, 2008
  5. Lew
    Replies:
    7
    Views:
    478
    Piper707@hotmail.com
    Sep 4, 2008
Loading...

Share This Page