login about faq

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 VB.net

asked Jul 17 '12 at 18:41

kevindcs's gravatar image


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: http://www.chilkatsoft.com/refdoc/vbnetSFtpRef.html )

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


answered Jul 18 '12 at 09:09

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 17 '12 at 18:41

Seen: 3,704 times

Last updated: Jul 18 '12 at 09:09

powered by OSQA