Anil Vedururu wrote: > From my palm application I need to get a prc over a http connection > whose size is more than 64k and install it on the device. I could write the > prc to a file . How do I install it now ?Any suggestions? > .DmCreateDatabaseFromImage needs a Mempointer to the image to install, > how do I get the pointer from the file.?. Are there any other ways to > install a prc? > How does Hotsync or Multimail install prc's whose size is greater than > 64k.
Max Bian answered: > You need ExgDBRead. This is probably your best bet. Another alternative is to put the prc into a feature pointer and then use DmCreateDatabaseFromImage (DmCDFI). This uses a lot of temporary storage heap space though. You can't use a File Stream except as a temporary buffer before calling ExgDBRead. DmCDFI requires the prc to be a contiguous chunk of memory. File Streams are broken up into 4K chunks. I'm not sure how HotSync installs apps, but I doubt it uses DmCDFI or ExgDBRead. The latter API was introduced in Palm OS 3.0. The install conduit probably creates the database and populates it with records or resources via the conduit API. I don't know how MultiMail works either. It might do a local send to Launcher, which then calls ExgDBRead. -- Danny @ Palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
