Commit bf04a044 by 黄森林

bug修復

parent b479009d
......@@ -2,8 +2,8 @@ package com.winsun.utils;
import com.winsun.constant.FilePath;
import lombok.extern.slf4j.Slf4j;
import sun.misc.BASE64Decoder;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
......@@ -41,8 +41,12 @@ public class PicturesUtil {
/**
* 2.解码成字节数组
*/
filePath = FilePath.IDCARD.getValue() + y + "/" + h + "/" + path + "/" + date.getTime() + "." + houzhui;
//filePath = "C:\\Users\\asus\\Desktop\\新建文件夹\\" + date.getTime()+ "." + houzhui;
filePath = FilePath.BACKGROUNDIMG.getValue()+ "/" + y + "/" + h + "/" + path + "/" + date.getTime() + "." + houzhui;
String filePath1 = FilePath.BACKGROUNDIMG.getValue()+ "/" + y + "/" + h + "/" + path;
File dir = new File(filePath1);
if (!dir.exists()) {
dir.mkdirs();
}
//byte[] bytes = Base64.getUrlDecoder().decode(base64Data);
//byte[] bytes =new BASE64Decoder().decodeBuffer(base64Data);
//byte[] bytes = Base64.getDecoder().decode(base64Data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment