Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144854 | May 26,2019 03:46 AM UTC | May 28,2019 06:53 AM UTC | ASP.NET Web Forms | 3 |
![]() |
Tags: XlsIO |
private Stream getobject()
{
using (AmazonS3Client client = new AmazonS3Client(RegionEndpoint.USEast1))
{
GetObjectResponse getObjRespone = client.GetObject("bucketname", "filename.xlsx");
MemoryStream stream = new MemoryStream();
getObjRespone.ResponseStream.CopyTo(stream);
stream.Position = 0;
return stream;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.