java.io.UTFDataFormatException - encoded string too long: 477616 bytes

11 views
Skip to first unread message

Gareth Murfin

unread,
Mar 3, 2018, 10:08:44 PM3/3/18
to CodenameOne Discussions
Preferences.set(key, value);    seems to have a limit on size, anyway to get around that or do I just use a different way to store?

Shai Almog

unread,
Mar 4, 2018, 12:30:55 AM3/4/18
to CodenameOne Discussions
If you reached that limit you shouldn't use preferences. Performance would grind to a halt!
Preferences is designed for small values, cached user names, auth keys etc. Anything bigger should go into a file.
Reply all
Reply to author
Forward
0 new messages