rust-ftp
rust-ftp copied to clipboard
I tried to upload the image and the zip, but I found that they were all corrupted.
I tried to upload the image and the zip, but I found that they were all corrupted.
Same here, most of the time it seems corrupted and checking the hex values difference it randomly seems different.
Turns out you need to make sure
let _ = ftp_stream.transfer_type(ftp::types::FileType::Binary);
Is run or FileType::Image. They both set the same value.
This helped me out, thanks for coming back to follow up @sekwah41!