File downloaded via WinSCP is corrupted

Advertisement

kevinca12
Joined:
Posts:
7

File downloaded via WinSCP is corrupted

File can be transferred to server correctly. But when file is transferred back to local computer in WinSCP, the file size changes. A log file is attached. Both FileZilla and scp command work without this issue. Could you please take a look? Your help is appreciated.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Thanks for the logs.
Regarding the first transfer of file test.dll: So you can see the file as having 2613760 bytes in a remote panel. And after you download it, it has a different size, right? Smaller or larger? Can we have a copy of the file before and after? Can you attach a log file on level Debug 2?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

I believe it's server-side problem.

Here, WinSCP asked for data at position 2587645 (00,00,00,00,00,27,7B,FD) with size 32755 (00,00,7F,F3)
> 2018-05-21 07:04:41.933 Type: SSH_FXP_READ, Size: 25, Number: 52997
> 2018-05-21 07:04:41.933 05,00,00,CF,05,00,00,00,04,00,00,00,00,00,00,00,00,00,27,7B,FD,00,00,7F,F3,
What is beyond end of file (2587645 + 32755 > 2613760), so the server should return only 26115 bytes. But it did return 26947 bytes (00,00,69,43), for a reason I cannot explain:

< 2018-05-21 07:04:42.880 Type: SSH_FXP_DATA, Size: 26956, Number: 52997
< 2018-05-21 07:04:42.886 67,00,00,CF,05,00,00,69,43,A7,88,A7,98,A7,A8,A7,B8,A7,C8,A7,D8,A7,E8,A7,F8,
I cannot explain why FileZilla works, but it can be just a coincidence, due to a different requests sizes that FileZilla can be using.

Reply with quote

Advertisement

anup
Guest

Corrupt file

I am also facing this issue it's a Linux machine to Windows the transferred file size is larger than the original.

Reply with quote

Advertisement

You can post new topics in this forum