Volley不解释了吧, android 官方的一个网络请求库.
源代码的地址在: git@github.com:com314159/VolleyMultiPartRequest.git
上面的是ssh 下面的是http地址 https://github.com/com314159/VolleyMultiPartRequest
是根据 https://github.com/smanikandan14/Volley-demo
这位大神修改而来的, 但是那位大神的代码有bug, 上传文件不成功.
注: 我的demo里面还集成了okhttp, 不需要的同学不用理这个类即可
实现方法: 1.添加三个jar包, httpcore-4.3.2.jar httpclient-4.3.5.jar httpmime-4.3.5.jar
2.实现MultiPartStack
详细地址:
http://blog.csdn.net/com314159/article/details/39853865
|