在HttpCient4.3之前上传文件主要使用MultipartEntity这个类,但现在这个类已经不在推荐使用了(过时了)。随之替代它的类是MultipartEntityBuilder。关于MultipartEntityBuilder类如何使用,大家可以参考《Android网络编程之使用HttpClient批量上传文件》一文。
时间: 2024-08-08 18:17:06
在HttpCient4.3之前上传文件主要使用MultipartEntity这个类,但现在这个类已经不在推荐使用了(过时了)。随之替代它的类是MultipartEntityBuilder。关于MultipartEntityBuilder类如何使用,大家可以参考《Android网络编程之使用HttpClient批量上传文件》一文。