Skip to content

Send Decrypted Offline Store Files to the Server

This feature allows a developer to asynchronously upload the offline store files, for example xxx.udb and xxx.rq.udb, to an SAP Mobile Platform or SAP Cloud Platform Mobile Services server to assist in troubleshooting issues.

Only users who have permission to access the back-end server can open the offline store files without an encryption key, and the encryption key being used on the devices remains undisclosed.

Sample Code

The following example illustrates how to send the offline store files to the server.

public void sendStore( OfflineODataProvider provider) throws ODataException
// ----------------------------------------------------------------------------
{
  provider.add( this, new OfflineODataDefiningQuery( "req1", "Customers", false ));
  provider.open( this );

  provider.sendStore( this );

}

When the Application Is Connecting to an SAP Cloud Platform (Neo) Server

Before consuming the sendStore function, the offline store files upload policy feature needs to be enabled. For information on enabling the offline store files upload policy feature, see Defining Client Offline Store Upload Policy.

Downloading an Uploaded Offline Store Files From an SAP Cloud Platform (Neo) Server

Once the sendStore function has been successfully consumed, the offline store files will be uploaded to the server. For information on downloading the uploaded files for later investigation, see Managing Client Database Uploads.

When an Application Is Connecting to an SAP Cloud Platform (Cloud Foundry) Server

Before consuming the sendStore function, the offline store files upload policy feature needs to be enabled. For information on enabling the offline store upload policy feature, see Defining Offline Settings for Applications.

Downloading an Uploaded Offline Store Files From an SAP Cloud Platform (Cloud Foundry) Server

Once steps 6 and 7 in Defining Offline Settings for Applications for information on how to download uploaded files for later investigation.


Last update: August 12, 2020