Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/376.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何使用改装零件图上传多个Base64编码图像?;_Java_Android_Base64_Retrofit_Retrofit2 - Fatal编程技术网

Java 如何使用改装零件图上传多个Base64编码图像?;

Java 如何使用改装零件图上传多个Base64编码图像?;,java,android,base64,retrofit,retrofit2,Java,Android,Base64,Retrofit,Retrofit2,我试着把它上传到一个文件里,但他似乎不起作用 for (String _selectedPhoto : pSelectedPhotos) { File _file = new File(_selectedPhoto); if (_file.exists()) { RequestBody _requestBody = RxPartMapUtils.toRequestBodyOfImage(_file); Reques

我试着把它上传到一个文件里,但他似乎不起作用

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);

        }
    }