Entity returns error in MultiPartEntityBuilder

拜拜、爱过 提交于 2019-11-29 14:48:38

Finally I've solved it.

It's a library issue, it worked with 4.3.1 version.

Here's the link to download library files

Try with theese versions, is working for me

compile 'org.apache.httpcomponents:httpcore:4.3.3'
compile('org.apache.httpcomponents:httpmime:4.3.6') {
    exclude module: 'httpclient'
}

Also you can read more here.

Rishi Gautam

multipartBuilder.addPart("images[]", fileBody); fileBody convert into byteArray then you pass because data travel in byte array

Try to upload the image in php server but it could post. in android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!