-1

Currently, I'm trying to upload PDF files with the FTPClient in Android. All of the PDFs from the Internet are working just fine, but documents from my university are getting messed up. What could cause this problem?

I'm using a simple AsyncTask with the standard FTP.Client Code.

Really appreciate your answers, hope you can help me!

Example one

Example two

Sunil
  • 3,404
  • 10
  • 23
  • 31

1 Answers1

1

Some PDFs contain binary data and others do not.

Set your transfer type to Binary.

Troy Turley
  • 659
  • 10
  • 28