Hi @ll,
I got a Problem with large Strings. I store a lot of Strings in a Vector in Persistent Store. From time to time I need to Mail the results, but I always get an OutOfMemory Error :(
Code:
// data is the vector
StringBuffer dataStr = new StringBuffer(130000);
for (Enumeration el=data.elements(); el.hasMoreElements(); ) {
dataStr.append((String)el.nextElement() + "\n");
}
// own function to send mails
sendMail("user@domain.tld", "subject", dataStr.toString());
Is there any max size of Strings?
thx,
abx