Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > HashMap issues with large value storage

Reply
Thread Tools

HashMap issues with large value storage

 
 
ragz_82 ragz_82 is offline
Junior Member
Join Date: Apr 2009
Posts: 9
 
      08-05-2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reuse HashMap$Entry (or HashMap in total) to avoid millions of allocations Vince Darley Java 4 03-02-2010 07:48 AM
need clarification on HashMap storage-retrieval Lew Java 7 09-04-2008 04:55 AM
java.util.Properties extending from HashMap<Object, Object> insteadof HashMap<String, String> Rakesh Java 10 04-08-2008 04:22 AM
how to remove a pair of key/value in STL hashmap sam C++ 1 05-01-2005 05:53 PM
Replace value in HashMap? Ken Java 7 07-07-2004 03:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57