Entity returns error in MultiPartEntityBuilder

后端 未结 3 863
春和景丽
春和景丽 2021-01-19 18:30

I\'ve tried following links but none of them helped to solve the issue.

HttpPost returning error when using MultipartEntityBuilder in Android

相关标签:
3条回答
  • 2021-01-19 18:53

    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.

    0 讨论(0)
  • 2021-01-19 19:11

    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

    0 讨论(0)
  • 2021-01-19 19:17

    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

    0 讨论(0)
提交回复
热议问题