How to read content from zip file from SFTP in azure function

Soma Sekhar Turpinti 21 Reputation points
2021-07-14T01:52:42.507+00:00

I want read content from the compressed(.zip) file from sftp in azure function.
I can read for normal text file but not from compressed file.

I also tried to download the file to temp folder in app root and read the file content but on portal it throws error like Could not find file.

Any suggestion will be appreciate.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,304 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2021-07-15T10:47:29.38+00:00

    @Soma Sekhar Turpinti In C#, you can use the System.IO.Compression namespace to work with ZIP files.

    You can use the ZipFile.Open to return an instance of the ZipArchive class that allows to read/add/delete files in the archive.

    0 comments No comments