Another option, is to use ExgDBRead to convert the prc file into a resource DB on the device. In your call back you would need to get the next 'bit' from the network (or you cache).

Aaron Ardiri wrote:
I want to write a big prc file (450kb) in the pda. The file will be downloaded
from a remote server. Since the pda may not have enough memory to
hold the whole file, i would like to write it in small chunk sizes.

I'm aware of the DmCreateDatabaseFromImage, but it requires the whole
file to be present in memory at once. And the DmCreateDatabase cannot
create a prc file.

Any clues?

yes,

first; call DmCreateDatabaseFromImage() with a minimalistic version of
your prc. basically; a prc file with nothing but the header - no resources.
this will be a small (less than 1k file). your problem was the creation of the
prc - this solves it.

you can then add resources to this database using DmNewResource()
which, you can then stream the individual resources down from your
webserevr at 64k max at a time :)


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to