【数据资产】
1、下载文件流
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -121,8 +121,8 @@ public class DataPortServiceImpl implements DataPortService { | ... | @@ -121,8 +121,8 @@ public class DataPortServiceImpl implements DataPortService { |
| 121 | throw new CsbrSystemException(SystemError.DATA_GET_ERROR, respJson.getString("message")); | 121 | throw new CsbrSystemException(SystemError.DATA_GET_ERROR, respJson.getString("message")); |
| 122 | } | 122 | } |
| 123 | } else { | 123 | } else { |
| 124 | MultipartFile multipartFile = new MockMultipartFile("测试.png", "测试,png", "application/octet-stream", resource.getByteArray()); | 124 | MultipartFile image = new MockMultipartFile("测试.png", "测试,png", "application/octet-stream", resource.getByteArray()); |
| 125 | String url = (String) daopCommonFeign.uploadImage(multipartFile).getData(); | 125 | String url = (String) daopCommonFeign.uploadImage(image).getData(); |
| 126 | log.info("======url======, {}", url); | 126 | log.info("======url======, {}", url); |
| 127 | System.out.println(url); | 127 | System.out.println(url); |
| 128 | } | 128 | } | ... | ... |
-
Please register or sign in to post a comment