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?

feita há 2 anos1613 visualizações
2 Respostas
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
ENGENHEIRO DE SUPORTE
respondido há 2 anos
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas