S3 download large files (.Net)

0

We are trying to download large files(>2 GB) through a C#.Net web application(AWS .Net SDK) from S3 to browser's(user/local) machine.

This is getting memory out of flow exception when using below

Amazon.S3.Transfer.TransferUtility.OpenStreamAsync().

Please suggest the best approach to download large(>2 GB) S3 file using .Net SDK?

asked 2 years ago1569 views
2 Answers
0

Hello! As a workaround, you could try installing the AWS CLI on the same machine and calling the "aws s3 cp" commands from .Net

AWS
SUPPORT ENGINEER
answered 2 years ago
0

The .NET SDK is just returning back the Stream from S3. It doesn't buffer the the object into memory. I suspect depending on how you are returning the stream back through your web stack it is attempting to read the entire stream before sending it down to the client.

AWS
Norm
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions