You Are Here:

Community: Developer Discussion Boards

#1 Old Maximum record size - 2003-11-07, 17:46

Join Date: Mar 2003
Posts: 15
tomasmcg
Offline
Registered User
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
Reply With Quote

#2 Old 2003-11-07, 20:05

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
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.
Reply With Quote

#3 Old 2003-11-08, 14:55

Join Date: Mar 2003
Posts: 15
tomasmcg
Offline
Registered User
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.
Reply With Quote

#4 Old 2003-11-08, 18:03

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
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.
Reply With Quote

#5 Old 2003-11-10, 21:05

Join Date: Mar 2003
Posts: 15
tomasmcg
Offline
Registered User
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
Reply With Quote

#6 Old 2003-11-11, 14:55

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
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.
Reply With Quote

#7 Old 2003-11-17, 18:15

Join Date: Nov 2003
Posts: 90
cwfvanoordt
Offline
Regular Contributor
Thomas

Would you have a code snippet on how to load images into RMS, cannot get it to work. Thanks in advance.

Chris
Reply With Quote

#8 Old 2003-11-17, 19:45

Join Date: Mar 2003
Posts: 15
tomasmcg
Offline
Registered User
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
Reply With Quote

#9 Old 2004-02-15, 04:42

Join Date: Oct 2003
Posts: 75
chris3388
Offline
Regular Contributor
Could I have the code also?
I wanna try it...

Thanks
Reply With Quote

#10 Old Size on Nokia 6600? - 2004-02-16, 16:47

Join Date: Jun 2003
Posts: 27
Location: Singapore
xforcelet
Offline
Learning & Trying
Anyone happens to know the size of RMS for each midlet suite on Nokia Series 60, Nokia 6600 for example?

thanks
Reply With Quote

#11 Old 2004-02-16, 17:10

Join Date: Mar 2003
Posts: 15
tomasmcg
Offline
Registered User
use getSizeAvailable() and this will return the amount of memory available to each Midlet.
Reply With Quote

#12 Old 2004-02-17, 09:23

Join Date: Oct 2003
Posts: 75
chris3388
Offline
Regular Contributor
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
Reply With Quote

#13 Old 2004-06-22, 11:14

Join Date: Mar 2004
Posts: 37
diplm
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia