Skip to content

Uploaded Attachment from AmazonSimpleEmailServiceV2 was not valid #3796

@berviantoleo

Description

@berviantoleo

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

  1. Download a file from S3 and create a copy stream.
  2. Send the attachment (ensure the attachment is more than 10 MB and under 40 MB) using AmazonSimpleEmailServiceV2.SendEmail using the copied stream.

Possible Solution

No response

Additional Information/Context

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

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.module/sdk-generatedp2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.service-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions