Archived Forum Post

Index of archived forum posts


Method SFTP DownloadFile is downloading 0 KB files

Jul 19 '16 at 19:32


Really need some assistance.

We are transitioning from a windows 2008 R2 server to a windows 2012 R2 server. But on the windows 2012 R2 server, the downloaded files are empty (0 KB).

on the windows 2008 R2 server, the file permissions are 0600 which chilkat reads as 33152

on the windows 2012 R2 server, the file permissions are 0666 which chilkat reads as 33206

Below is an example log from chilkat which shows as successful:


DownloadFile: DllDate: Aug 3 2011

UnlockPrefix: NFAFUTSSH

Username: NFISEPE02D:nfisepe

Architecture: Little Endian; 32-bit

Language: ActiveX

SshVersion: SSH-2.0-2.0

SftpVersion: 6

handle: C005000000000000
toFilename: C:\Users\NFISEPE\Documents\Visual Studio Projects\TestChilkat\TestChilkat\bin\SITUATION.docx

tcpNoDelay: 0


  Fetching size-only.

  handle: C005000000000000

  flags: 0x1


  Sent message to fetch attributes.

  Received SSH_FXP_ATTRS

  unpackSftpVersion: 6

remoteFileSize: 15147

Reached end of remote file.

timeToDownloadFileDataMs: Elapsed time: 31 millisec


That's a really old version of the Chilkat library (from 2011). Can you try your code again with the latest version to see if the problem persists?