SFTP Download File is empty

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
jeisen
Posts: 12
Joined: Sat 14 Feb 2015 20:15

SFTP Download File is empty

Post by jeisen » Fri 06 Mar 2015 01:12

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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: SFTP Download File is empty

Post by ViktorV » Fri 06 Mar 2015 09:43

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.

jeisen
Posts: 12
Joined: Sat 14 Feb 2015 20:15

Re: SFTP Download File is empty

Post by jeisen » Sat 07 Mar 2015 19:38

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

jeisen
Posts: 12
Joined: Sat 14 Feb 2015 20:15

Re: SFTP Download File is empty

Post by jeisen » Sat 07 Mar 2015 21:29

never mind...I found the error, wrong delimiter in file path. Also had a problem with ftperror event so wasn't trapped

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: SFTP Download File is empty

Post by ViktorV » Tue 10 Mar 2015 07:59

Feel free to contact us if you have any further questions about SecureBridge.

Post Reply