From fa5b7f5f8c2b731866b384ae86f537556d8dd526 Mon Sep 17 00:00:00 2001 From: caoqi Date: Thu, 7 Mar 2024 16:56:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=B1=E4=BA=8E=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=87=BA=E9=94=99=EF=BC=8C=E6=9A=82=E6=97=B6=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=8E=89=E8=BF=99=E4=B8=AA=E5=87=BA=E9=94=99=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E5=85=B6=E4=BB=96=E7=B1=BB=E4=B9=9F=E6=B2=A1?= =?UTF-8?q?=E7=94=A8=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shuili/common/utils/file/FileUtils.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/shuili-common/src/main/java/com/shuili/common/utils/file/FileUtils.java b/shuili-common/src/main/java/com/shuili/common/utils/file/FileUtils.java index b8a3b49b..3cbb166a 100644 --- a/shuili-common/src/main/java/com/shuili/common/utils/file/FileUtils.java +++ b/shuili-common/src/main/java/com/shuili/common/utils/file/FileUtils.java @@ -13,7 +13,7 @@ import java.net.URLEncoder; import javax.servlet.http.HttpServletRequest; -import sun.misc.BASE64Encoder; +//import sun.misc.BASE64Encoder; /** * 文件处理工具类 @@ -174,19 +174,19 @@ public class FileUtils extends org.apache.commons.io.FileUtils * @param input * @return */ - public static String GetImageStrByInPut(InputStream input) { - byte[] data = null; - // 读取图片字节数组 - try { - data = new byte[input.available()]; - input.read(data); - input.close(); - } catch (IOException e) { - e.printStackTrace(); - } - // 对字节数组Base64编码 - BASE64Encoder encoder = new BASE64Encoder(); - return encoder.encode(data);// 返回Base64编码过的字节数组字符串 - } +// public static String GetImageStrByInPut(InputStream input) { +// byte[] data = null; +// // 读取图片字节数组 +// try { +// data = new byte[input.available()]; +// input.read(data); +// input.close(); +// } catch (IOException e) { +// e.printStackTrace(); +// } +// // 对字节数组Base64编码 +// BASE64Encoder encoder = new BASE64Encoder(); +// return encoder.encode(data);// 返回Base64编码过的字节数组字符串 +// } }