on-internet
← Community

stream.ReadTimeout' threw an exception of type 'System.InvalidOperationException'

Stack Overflow ·

I am trying to download a zip file from SFTP and unzip in the memory to process the file I am using SSH.Net to download the file. private static void processfilesfromftp(List<TSOracleMicrosDownLoadSetUp> list) { SftpClient sftp = HelperFunctions.GetClientConnection(); if(sftp.IsConnected) { var files = sftp.ListDirectory("/"); ZipFile zips = new ZipFile(); string path = string.Empty; foreach(var file in files) { Stream unzippedEntryStream = new MemoryStream(); path = string.Format("/{0}", file.Name); //byte[] arr = sftp.ReadAllBytes(file.FullName); var stream = new BufferedStream(sftp.OpenRead

Comments

Sign in or sign up to comment and upvote.

No comments yet.