uploadReportDataChunk() Method

In ReportService, use the uploadReportDataChunk() method to upload a report data chunk.

When using uploadReportDataChunk() or downloadReportDataChunk() in a clustered environment, you must set the System Temporary Directory to be a shared directory accessible to all servers within the cluster. To set the System Temporary Directory, repeat this procedure for all servers in the cluster, entering the same value for System Temporary Directory:

  1. Sign in with Administrator privileges.

  2. Click the Administration link.

  3. Under System Maintenance, click Server Configuration.

  4. Under General Properties in the System Temporary Directory property, enter the absolute path to a directory accessible to all servers in the cluster.

    For example, the directory can exist under ${xdo.server.config.dir}/temp but you must enter the absolute path, such as /net/subfoldera/scratch/subfolderb/bicat/temp

Signature

uploadReportDataChunk(String fileID, byte[] reportDataChunk, String reportRawDataChunk, String userID, String password);

Parameters for uploadReportDataChunk() Method

Parameter Description

String fileID

In the first call, you do not need to provide the fileID, after the successful uploading of the first chunk of XML data, it will return a fileID, for example: filename. On your subsequent calls, you can supply the same fileID to append the subsequent data chunks to the same file.

byte[] reportDataChunk

The XML data to upload.

String reportRawDataChunk

String representation of XML data, presenting as reportRawDataChunk. This is an alternative to reportDataChunk byte[].

String userID

Specifies the user name.

String password

Specifies the password for the user name.