Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I tried to upload the image and the zip, but I found that they were all corrupted. #114

Open
nageslan opened this issue Feb 22, 2023 · 3 comments

Comments

@nageslan
Copy link

I tried to upload the image and the zip, but I found that they were all corrupted.

@sekwah41
Copy link

Same here, most of the time it seems corrupted and checking the hex values difference it randomly seems different.

@sekwah41
Copy link

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.

@thewildandy
Copy link

This helped me out, thanks for coming back to follow up @sekwah41!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants