question

SomaSekharTurpinti-1638 avatar image
0 Votes"
SomaSekharTurpinti-1638 asked PramodValavala-MSFT answered

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.