【问题标题】:How to send image from Android to FTP如何将图像从 Android 发送到 FTP
【发布时间】:2014-06-29 23:45:52
【问题描述】:

我不知道下面的连接是否正确,我有一个IOException。

sb=ftp://IDUSER:password@ftp.fercode.com/manolo;type=i

URL url = new URL( sb.toString() );
URLConnection urlc = url.openConnection();
urlc.getOutputStream();// this line throws a IOException

【问题讨论】:

    标签: android image upload ftp


    【解决方案1】:

    您需要使用 Apache 等 FTP 客户端才能正确上传和下载文件。

    看这里: http://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html

    【讨论】:

      猜你喜欢
      • 2014-05-08
      • 1970-01-01
      • 2020-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-26
      • 1970-01-01
      • 2011-09-12
      相关资源
      最近更新 更多