如何使用改装partMap上传多个Base64编码图像?

时间:2017-05-11 03:17:00

标签: java android base64 retrofit retrofit2

for (String _selectedPhoto : pSelectedPhotos) {

        File _file = new File(_selectedPhoto);
        if (_file.exists()) {
            RequestBody _requestBody = RxPartMapUtils.toRequestBodyOfImage(_file);
            RequestBody _requestBody = RxPartMapUtils.toRequestBodyOfImage(Base64Utils.getStringFile(_file));
            map.put("file\"; filename=\"" + _file.getName() + "", _requestBody);

        }
    }

我尝试将其上传到文件中,但他似乎没有工作。

0 个答案:

没有答案