weeklyFlashReport.Save(inputStream, SaveFormat.Pdf);
buffer = inputStream.ToArray();
outputStream.Write(buffer, 0, buffer.Length);
try
{
Console.WriteLine(“Put object request starts”);
var putRequest = new Amazon.S3.Model.PutObjectRequest
{
BucketName = bucketName,
ContentType = “application/pdf”,
InputStream = outputStream,
Key = path,
CannedACL = S3CannedACL.PublicRead
};
Console.WriteLine("Put Object request ends");
Task<PutObjectResponse> response = client.PutObjectAsync(putRequest);
[Error] Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction: Unknown error responding to request: CellsException:
Aspose.Cells.CellsException: The type initializer for ’ ’ threw an exception.
at Aspose.Cells.Workbook.Save(Stream stream, SaveOptions saveOptions)
at AWSServerless_Report.Models.ViewReportModel.SaveSpreadSheetAsync(Workbook weeklyFlashReport, String FileFormat) in C:\MFR_Custom_QA\QA_API\API\AWSServerless_Report\Models\ViewReportModel.cs:line 1025
Please help me out asap.
Thanks.
This Topic is created by Amjad_Sahi using Email to Topic tool.