📜  改造 android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:41.386000             🧑  作者: Mango

代码示例6
RequestBody requestBody = new MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("title", "Square Logo")
        .addFormDataPart("image", "logo-square.png",
            RequestBody.create(MEDIA_TYPE_PNG, new File("website/static/logo-square.png")))
        .build();