Page 1 of 1

SFTP Download File is empty

Posted: Fri 06 Mar 2015 01:12
by jeisen
Using TScSFTPClient to download file everything appears to be working correctly (no errors reported) but the downloaded file is always 0 bytes. I'm not using the OnCreateLocalFile event because I'm assuming default attributes.

Any help would be appreciated

Re: SFTP Download File is empty

Posted: Fri 06 Mar 2015 09:43
by ViktorV
Please check whether the file data is read out from the server. For this, use an OnData event handler, this event should be called once at least when reading data from the remote file.

Re: SFTP Download File is empty

Posted: Sat 07 Mar 2015 19:38
by jeisen
yes no matter what file I try it is at EOF. Also, I added the OnCreateLocalFile event but it is still the same issue. By the way if I download the files outside of SecureBridge using another tool there is no issue. thanks

Re: SFTP Download File is empty

Posted: Sat 07 Mar 2015 21:29
by jeisen
never mind...I found the error, wrong delimiter in file path. Also had a problem with ftperror event so wasn't trapped

Re: SFTP Download File is empty

Posted: Tue 10 Mar 2015 07:59
by ViktorV
Feel free to contact us if you have any further questions about SecureBridge.