"Mark A. Peters" <[EMAIL PROTECTED]> wrote in message
news:13155@palm-dev-forum...
> I want to do an on-demand transfer of a .pdb existing on a server (a .pdb
> that is otherwise suitable for installation via HotSync) to the handheld
> over a TCP/IP connection. Looking over the data manager API, it seems
that
> DmCreateDatabaseFromImage might be the key to doing this.
I'd use ExgDBRead rather than DmCreateDatabaseFromImage. You can build the
database gradually as you receive it, or you can store the data in a
FileStream and destructively read from the FileStream as you build the
database. I'd go with the first approach unless you run into trouble. It's
simpler, faster and uses less memory.
The ExgDBRead and ExgDBWrite routines convert between the prc/pdb format
(the same one used to store Palm databases on the desktop) and the Palm OS
internal database format. They're uses to send and receive beamed databases
in the Launcher, but they don't really have anything to do with the
Exchange Manager otherwise. (In other words, they should really be Dm
routines.)
DmCreateDatabaseFromImage will require twice the storage. It's really
designed for default data, which is usually small. I haven't used it, but I
think your understanding of it is correct. It builds a database from a
resource in prc/pdb format.
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/