'How to copy file from Azure fileshare and zip it and move to some other place?

I have been using method in which I am taking data in bytes then creating zip file and then uploading it back to required location but I need something which is efficient. I am also using this ICSharpZipLib library mentioned on this page link to perform the action but I couldn't understand this piece of code HttpResponseBase response in function parameter.

This is how my FileShareCode looks like:

var shareClient = Common.CreateSMBClientFromConnectionString(shareName, storageConnectionString);
            ShareDirectoryClient directory = shareClient.GetDirectoryClient(dirName);
            ShareFileClient file = directory.GetFileClient(fileName);

I am trying to replace HttpResponseBase response with ShareFileClient file.URI but it doesn't work.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source