I have an Android app which does, among other things, FTP uploads and downloads with a file server. Up to Android 10, all is fine, but I'm getting problems with Android 11.

I have opened a FileStream. Available shows the right byte count, and a read returns a byte array with the right data in it, so my Android/Java app can handle it fine. A FTPSClient storeFile creates a file on the server, but the data is totally corrupt. The application also locks, the storeFile never returns until I am forced off the server. It's all in a try/catch, with enough catches to choke an elephant. All files are in a folder within my application 'sandbox'. As I said, my Java code can handle the file.

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐