Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maximum size of String

 
sakuja jangra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I have got a condition where I have to pass a string to a web service. ealier this service was accepting parameter as CSV file but now that's taking that parameter as String. I have to pass the String with the condition that size of String cant be greater than 80 MB. I know this is bad design but cant think of any other option at present(due to time constraint and contract with the web service).
My question is how can we decide the size of String doesn't cross 80 MB(It can be somewhat less for that matter). I hope that is based on JVM allocation of memory. but I want that independant of that. I searched internet but couldn't find any pointer towards that.

Please help. thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reserve this forum for adbanced Java questions. I have moved this post to a more appropriate forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic