Commit 0a8edd3c by yangyang

内蒙人像对接(内蒙)

parent ae6a5054
......@@ -63,6 +63,7 @@ public class Base64Util {
public static String getBase64(MultipartFile imageFile) throws IOException {
BASE64Encoder base64Encoder =new BASE64Encoder();
String base64EncoderImg =base64Encoder.encode(imageFile.getBytes());
base64EncoderImg = base64EncoderImg.replaceAll("\r\n", "");
return base64EncoderImg;
}
......
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