I have list of internet URLS I am trying to create a zip using Memorystream. The files are on s3 bucket however s3 sdk doesnt have any function to download folder as zip.
Avoiding to save it on server and delete those. The project is running on Ubuntu. I have tried getting the response as follows,
var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MyClient", "1.0"));
var result = await httpClient.GetStreamAsync(names[0]);
However the ZipArchive class in .NET takes local files path and not memorystream
Note: I cannot use SharpZipLib since it is not supported by .NET Core.