We are trying to convert jpg/png to pdf, and operation is getting timed out during file upload request. It was working fine before and started giving problems suddenly. Below is the code snippet for the same:
ImagingApi ImagingCloudApi = new ImagingApi(clientSecret: AsponseLicence.ClientSecret, clientId: AsponseLicence.ClientId);
Aspose.Imaging.Cloud.Sdk.Model.Requests.UploadFileRequest uploadFileRequest = new Aspose.Imaging.Cloud.Sdk.Model.Requests.UploadFileRequest()
{
path = uploadFileName,
File = file.OpenReadStream()
};
ImagingCloudApi.UploadFile(uploadFileRequest); ---------- The operation has timed out
var request = new ConvertImageRequest()
{
name = uploadFileName,
format = “pdf”
};
var convertResult = ImagingCloudApi.ConvertImage(request);
Aspose.Imaging.Cloud.Sdk.Model.Requests.DeleteFileRequest deleteFileRequest = new Aspose.Imaging.Cloud.Sdk.Model.Requests.DeleteFileRequest()
{
path = uploadFileName
};
ImagingCloudApi.DeleteFile(deleteFileRequest);