Merge branch 'master' of https://github.com/java110/MicroCommunity
| | |
| | | .replace("data:image/webp;base64,", "") |
| | | .replace("data:image/png;base64,", "") |
| | | .replace("data:image/jpeg;base64,", "") |
| | | .replace("data:application/octet-stream;base64,","") |
| | | ); |
| | | |
| | | return new ResponseEntity<Object>(context, headers, HttpStatus.OK); |
| | |
| | | } else if (imageBase64.contains("data:image/webp;base64,")) { |
| | | imageBase64 = imageBase64.replace("data:image/webp;base64,", ""); |
| | | fileName += ".jpg"; |
| | | } else { |
| | | } else if(imageBase64.contains("data:application/octet-stream;base64,")){ |
| | | imageBase64 = imageBase64.replace("data:application/octet-stream;base64,", ""); |
| | | fileName += ".jpg"; |
| | | }else { |
| | | fileName += ".jpg"; |
| | | } |
| | | FTPFile[] fs = ftpClient.listFiles(fileName); |