crifurch / pure_ftp

MIT License
8 stars 3 forks source link

File Download Issue: Bytes Received Smaller Than Expected #23

Closed samfilholima closed 4 months ago

samfilholima commented 4 months ago

Hi there,

I’ve been using your library to download files, and I noticed an issue. When downloading a file of approximately 3.38 MB, the received bytes appear to be smaller than expected. However, it’s worth noting that files with a size of less than 600 KB seem to function normally. Could you please investigate this issue and provide any insights or solutions?

Thanks in advance for your help!

crifurch commented 4 months ago

Hi, try client.socket.setTransferType(FtpTransferType.binary);

crifurch commented 4 months ago

@samfilholima or you can pass it by default as in https://github.com/crifurch/pure_ftp/issues/24#issuecomment-2118479618

samfilholima commented 4 months ago

hi friend, thank you! It worked out perfectly