| Reply | « Previous Thread | Next Thread » |
|
Hello,
I am wondering what the maximum record size is? I would like to store images (2 to 3 at any one time) and they are about 50Kb each. However, when I try to add the record in the 3300 (Beta 0.5) I get an RecordStoreFull exception. When I check the amount of available memory it's 4758Kb which is more than enough. I've looked through the MIDI 1.0 spec and it says nothing about the maximum size. Can anyone point me in the right direction? Regards |
|
The getSizeAvailable() method of the RecordStore will tell you how much space is available to you. I don't know specifically about the 3300, but on other Series 40 phones the maximum space available is about 20k per application (per installed JAR), irrespective of how much memory is free on the device. Within that, there seems to be no limit to the number of record stores, or the size of an individual record.
Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
The getSizeAvailable reports that there is just over one million bytes available. I have successfully saved a 16Kb file, but the 48Kb file is still being rejected. Perhaps there is a limit on the size of an individual record.
|
|
A million bytes, good grief!
If there is a maximum record size, the most logical value would seem to be 32767 (the maximum value for a short), but I can find no evidence that any of the RMS system uses shorts rather than ints. You should be able to test this, and identify any maximum, by performing a binary-search, using 16k and 48k as your bounds. I notice you mention that you're using a Beta device. It might be worth checking any behaviour with a production device... the amount of available space you are finding is hugely more than other Series 40 phones. Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
Well, this devices serves as an MP3 player aswell so I assume it's got a lot of internal storage. The documentation for the 7210 says it's got just over 600K of storage which seems like a more resonable amount.
I'll try out the storage of different sizes just to see what the bounds are. Unfortunatly, Nokia have no documentation available with the beta I downloaded! Tom |
|
The 7210 has about 600k, but each MIDlet suite only gets 20k for a RecordStore, no matter how much is free. I'm a bit surprised that the 3300 doesn't have a similar restriction.
Graham. |
| grahamhughes |
| View Public Profile |
| Find all posts by grahamhughes |
|
Thomas
Would you have a code snippet on how to load images into RMS, cannot get it to work. Thanks in advance. Chris |
| cwfvanoordt |
| View Public Profile |
| Find all posts by cwfvanoordt |
|
Certainly,
My email address is tomas@chewedpencil.net. Mail me and I'll forward you a class I have written to load/read data from the RMS. Tom |
|
Could I have the code also?
I wanna try it... Thanks |
|
Anyone happens to know the size of RMS for each midlet suite on Nokia Series 60, Nokia 6600 for example?
thanks |
|
use getSizeAvailable() and this will return the amount of memory available to each Midlet.
|
|
but would getSizeAvailable() get the size of one record or the size of all records?
I mean if there is any limitation of size of a record? I have used this method on Nokia 6600, and it showed that the size of record occupies almost all the memory space of the device. but i dunno if it is really the case as i dunno how to store file to the recordstore to test if it can really occupy that much space. anyone have successful code which can store file in recordstore? can send to me to test? thanks |
|
Hi Chris and others,
any result to this? Has anyone tested the maximum RecordStore size for one MIDlet on 6600? Many thanks for info, Heike |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|