Sets the stream from which data is read when uploading.
ANSI (Cross Platform) int SetUploadStream(IPWorksS3Stream* sUploadStream); Unicode (Windows) INT SetUploadStream(IPWorksS3Stream* sUploadStream);
#define MID_S3CLIENT_SETUPLOADSTREAM 29 IPWORKSS3_EXTERNAL int IPWORKSS3_CALL IPWorksS3_S3Client_Do(void *lpObj, int methid, int cparam, void *param, int cbparam, int64 *lpllVal);
If an upload stream is set before data is uploaded, the content of the stream will be read by the class and uploaded to the server. The stream should be open and normally set to position 0.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)