-
Notifications
You must be signed in to change notification settings - Fork 874
Description
Describe the bug
I downloaded the file from S3 and sent the downloaded file as a stream to the AmazonSimpleEmailServiceV2.
I identified that the downloaded size is correct (same as the S3 object size). But the received file size (the attachment) was wrong (doubled). Which causes the invalid attached file.
I tried to ensure the MemoryStream is valid. But, seems when encoding to base64.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
The attachment file is correct.
Current Behavior
The attachment file size is doubled and invalid.
Reproduction Steps
- Download a file from S3 and create a copy stream.
- Send the attachment (ensure the attachment is more than 10 MB and under 40 MB) using
AmazonSimpleEmailServiceV2.SendEmailusing the copied stream.
Possible Solution
No response
Additional Information/Context
-
Affected codes
-
Simple Example - https://gist.github.com/berviantoleo/e0cda6eb7020c90532a81967ba0cb546
-
Another sample - https://gist.github.com/berviantoleo/82b5f606eefe74194496f5f4f3367733
AWS .NET SDK and/or Package version used
AWSSDK.SimpleEmailV2 4.0.0.2
AWSSDK.S3 4.0.0.2
Targeted .NET Platform
.NET 8
Operating System and version
Amazon Lambda