【发布时间】:2014-09-05 20:01:18
【问题描述】:
我需要使用 Android 的 HttpClient 上传文件。不幸的是,Android doesn't include MultipartEntity,所以我必须使用Apache's httpmime library。
我不想在 Android 的 HttpClient 和官方的 HttpClient 之间引起可能的冲突。另外,我不想引入比我必须的更多的外部库,因为我需要保持我的方法数量很少。
什么版本的 httpmime 可以与 Android 的 HttpClient 一起使用? All of the questions我看过recommending httpmime也推荐using Apache's official HttpClient or HttpCore。
(我知道我应该使用Retrofit,但我必须使用Android的HttpClient才能与其他库兼容。)
【问题讨论】:
标签: android file-upload androidhttpclient