添加图片转码

This commit is contained in:
yangjun 2024-07-09 17:48:12 +08:00
parent 0083798586
commit 036ec2555e
1 changed files with 2 additions and 5 deletions

View File

@ -778,15 +778,12 @@ public class ArtificerServiceImpl extends ServiceImpl<ArtificerDao, Artificer> i
log.error("---------图片----------生活照:"+lifePhoto);
log.error("---------图片----------头像照:"+artificerImg);
lifePhoto = "http://1.92.152.160/file/uploadPath/2024/07/09/a892623c518812421cec310d3d5e8d0a.jpg";
artificerImg = "https://sausers.blxinchuang.com/file/uploadPath/2024/07/03/423843a244c16b04819a131c2160c0af.png";
// lifePhoto = "http://1.92.152.160/file/uploadPath/2024/07/09/a892623c518812421cec310d3d5e8d0a.jpg";
// artificerImg = "https://sausers.blxinchuang.com/file/uploadPath/2024/07/03/423843a244c16b04819a131c2160c0af.png";
String base64Img1 = FileUploadUtils.encodeImageToBase64(lifePhoto);
String base64Img2 = FileUploadUtils.encodeImageToBase64(artificerImg);
log.error("---------base64----------生活照:"+base64Img1);
log.error("---------base64----------头像照:"+base64Img2);
faceMain.runFlag();
//对比