Archived Forum Post

Index of archived forum posts


upload file using streaming

Jul 18 '12 at 09:09

There is an example of downloading a file using streaming (which I can use for progress bar) but there is no example on how to upload with streaming.

I have tried several different things but nothing seems to work. Can someone tell me how to upload a file using streaming and SFTP? I am using


The upload sample code would be the same as the download, except for the arguments passed to OpenFile for the createDisposition and access (see the Chilkat VB.NET reference documentation for SFTP here: )

Also, you would write a loop to read chunks from your local file and instead of calling ReadFileBytes, you would call WriteFileBytes.