Hi :-)
I am working on a project where I have to handle (read only) a huge
piece of data on the palm. The filesize ranges from 256kByte up to
2 MByte.
To get this file on my palm I splitted it into pieces
of 8, 16, 32 kByte (I did several attempts :-)), created a resource
database out of these pieces and installed it on my palm.
By loading the resource blocks into memory I can handle them proper.
Everything is working fine....
For some reasons now, I want to try the File Streaming
method either, because I need some address pointers into the data.
Now to my question:
How do I get the datafile on my palm and setup some pointers on
it to read requested data ?
Right now, my idea is to keep the resource database and within
the start of my application I do something like that:
open filestream
if(filestream not found)
create new filestream
open resource database
if(resource database)
copy each resource block into to filestream (FileWrite)
check written filestream
set pointer on begin of filestream
Once the filestream has been created, it is possible to delete
the resource database. I am not sure, if i would do that, because
if the filestream gets corrupt, the user has to re-install the
database.
The problem (?) on that method is, that it doubles the required
memory (resource database + filesize).
Any other ideas or code snippets ?
Thanks for any help :-)
Jochen
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/