| | |
| | | String base64Str = java.util.Base64.getEncoder().encodeToString(fileBytes); |
| | | String imageSuffix = "." + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".") + 1); |
| | | String imageNames = System.currentTimeMillis() + IdUtil.simpleUUID() + imageSuffix; |
| | | String imageName = "clothes/" + imageNames; |
| | | String imageName = "xcx/" + imageNames; |
| | | OssUtils.uploadFileWithBase64(base64Str, imageName); |
| | | String bucket_name = "https://excoin.oss-cn-hangzhou.aliyuncs.com"; |
| | | String bucket_name = OssUtils.END_POINT; |
| | | String url = bucket_name + "/" + imageName; |
| | | |
| | | Map<String,Object> map = new HashMap<String,Object>(); |