All UltraLite libraries support the ability to transfer files with the MobiLink server, except M-Business Anywhere. M-Business Anywhere does not need this functionality because it has its own mechanism for file deployments or transfers (called channel synchronization).
For all other APIs, use the MobiLink file transfer mechanism when:
You can employ one of two MobiLink-initiated file transfer mechanisms to download files to a device: run the mlfiletransfer utility for desktop transfers, or call the appropriate function for the API you are using to code your UltraLite application. Both approaches require that you:
Whether you use the mlfiletransfer utility from the desktop, or whether you use the function appropriate to your API, you must set the local path and file name of the file on the target device or desktop computer. If none are supplied in the application or by the end user, then the source file name is assumed and the file is stored in the current directory.
The destination directory of the target can vary depending on the device's operating system:
If the destination is NULL, mlfiletransfer assumes that the file you need to download is a Palm record database (a *.pdb file) to the device's record store.
The file name must follow file name conventions for Palm OS. See Palm OS.
The file name must follow file name conventions for Windows Mobile. See Windows Mobile.
The file name must follow file name conventions for the desktop system. See Windows desktop.
This user name and password are separate from any database user ID and password, and serve to identify and authenticate the application to the MobiLink server.
Most synchronization streams require parameters to identify the MobiLink server address and control other behavior. If you set the stream type to a value that is invalid for the platform, the stream type is set to TCP/IP.
For example, you can set properties that allow this mechanism to force a download even when the file already exists on the target and has not changed, or that allow partial downloads to be resumed. You can also set whether you want the download progress to be monitored and reported upon.
By displaying the download progress, the user can cancel and resume the download at a later time.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |