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?

已提問 2 年前檢視次數 1613 次
2 個答案
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
支援工程師
已回答 2 年前
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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南