Archived Forum Post

Index of archived forum posts

Question:

ZIP and FTP/SFTP

Jan 29 '13 at 20:16

Hello,

is there a way to zip (with aes encryption) a file directly to a ftp and/or sftp server without creating a local zip file?

Regards Andreas


Answer

Only if the zip is not too large to fit in memory. You could call the zip.WriteToMemory method to write the zip file to a byte array (or CkByteData) and then upload directly from that to the FTP and/or SFTP server. Both FTP and SFTP have methods for uploading from a byte array (or CkByteData).