Duplicate :
|
Strings cannot be serialized or marshalled if their UTF8 representation will be 65536 bytes or larger in size. This is a restriction imposed by the 16-bit length field used by DataOutputStream.writeUTF(), and documented there. This might have been a DataOutputStream bug, but there's not much that can be done there without breaking backwards compatibility, whereas we can workaround it in serialization, probably.
|