Image upload using okHttp

后端 未结 4 1205
無奈伤痛
無奈伤痛 2020-11-28 10:56

i want to upload image using okhttp but i am not able to find MultipartBuilder for Post Image.What can i use instead of this.

Here is my code

<
4条回答
  •  -上瘾入骨i
    2020-11-28 11:52

    You need to Use

    new MultipartBody.Builder()
    

    Instead of

    new MultipartBuilder()
    

    Its working

提交回复
热议问题