login about faq


I'm working on an S/FTP application with file encryption. It's based on this example. Is there any way to stream only chunks of the files because it's using a lot of memory with big files.

Thank you!

asked Oct 17 '12 at 18:10

dss's gravatar image


I'm confused because you indicate you are working on an S/FTP (Secure File Transfer over SSH) application, but the example you cited was for FTP. Which is it? SFTP or FTPS?


answered Oct 18 '12 at 08:39

chilkat's gravatar image

chilkat ♦♦

Sorry, I was misunderstandable! The two methodes (SFTP and FTP) are selectable. The FTP part is working with the example above.

I mixed the example with this, when SFTP is selected.


answered Oct 18 '12 at 08:47

dss's gravatar image


With the SFTP API (such as for the example here: http://www.example-code.com/vbdotnet/sftp_writeBinary.asp ), the methods are similar to typical file I/O. You open a file for writing (or to create it), you then write to the open file. You may call the sftp.WriteFileBytes method any number of times. If you are streaming a large file, then you may write the file chunk-by-chunk by calling sftp.WriteFileBytes for each chunk. When you are done writing, you close the file by calling sftp.CloseHandle.


answered Oct 18 '12 at 18:22

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: Oct 17 '12 at 18:10

Seen: 2,224 times

Last updated: Oct 18 '12 at 18:22

powered by OSQA