Subject: sFTP stream is unreadable in version 6.8
Date: 2018-09-05 17:26:40
From: jsolomon
Source: sftp-stream-unreadable-version-6-8
----------------------------------------------------------------------

I have the following code.  It has worked beautifully for years using the sFTP libraries version 5.0.
We have recent upgraded to the latest 6.8 and the stream is unreadable.  The stream is retrieved from the sftp server and it exists..but it throws an error an an unreadable stream.  

Simply swapping the references back to the 5.0 libraries allows the stream to be readable.

Is there a difference in the stream returned by the 'GetDownloadStream' method.


                var stream = sftpClient.GetDownloadStream(Normalize(remoteFilename));

                if (stream.Length <= 100000000)//if less than 100mb
                {
                    //do something

                }

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index