DataStoreFullException

i am using record stores to store lots of data on a palm device.

for better or for worse it is a necessity.

i am running into a problem with DataStoreFullException when trying to store an image encoded as a string.

the string is about 120k.

it appears to be writing about 112k of the string before the error occurs.

i have read multiple times about a 64k size limit on records.

weird since it seems to be writing 112k before crashing.

i have tried breaking the string into chunks and storing them individually with the same results. when i say small i mean i have gone all the way from storing 64k chunks to 8k chunks.

i have also used the getSizeAvailable() method with that particular datastore and see that i have in the range of 14 million bytes free.

any clues?

[827 byte] By [willownighta] at [2007-11-27 6:47:10]
# 1
have you tried with a byte array?
suparenoa at 2007-7-12 18:19:49 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
yup.
willownighta at 2007-7-12 18:19:49 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
and?
suparenoa at 2007-7-12 18:19:49 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
sorry..... same result.DataStoreFullException
willownighta at 2007-7-12 18:19:49 > top of Java-index,Java Mobility Forums,Java ME Technologies...