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

Soma Sekhar Turpinti 21 Reputation points

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.
2,800 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 14,716 Reputation points Microsoft Employee

    @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.