c# - Amazon S3 Stream is too long -
when trying download large file, zip file size 2gb amazon s3, throws exception "stream long" . how reading file amazon stream var s3file = new s3fileinfo(client, bucketname, objectkey); var stream = s3file.openread(); is possible read file contents small chunks , merge them locally? -alan- public class buketobjectresult { public bool success { get; set; } public long size { get; set; } } public void getbucketobjectdata() { try { buketobjectresult res = checkfile(); //chunk divide in small chunks eg : 2gb file : 20mb chunks int chunksize = (int)(res.size / chunk); if (!res.success && (res.size == 0 || chunksize <= 0)) { res.success = false; return ; } string filename = "your file name"; long startpostion = 0; long endposition = 0