String imageFilePath = "ftp://hostname/dir/imagefilename.jpg";
BitmapFactory.Options options = new BitmapFactory.Options;
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(imageFilePath, options);
int height = options.outHeight;
int width = options.outWidth;
しかしheight、width常に0です。
私も設定してみましinJustDecodeBounds = falseたが、まだdecodeFileメソッドが返されていnullます。
imageFilePathローカルの画像ファイルに設定すると機能しましたが、通常の Web サイトのファイルでは機能しませんでしたhttp。
FTPサーバーへの接続について疑問に思っている人のために、それは正常に接続され、認証されていFTPClient.listFiles()ますFTPClient.listNames().