src/main/java/com/hx/util/FileConvertTool.java
@@ -44,8 +44,7 @@ /** * 获取文件base64字符串 * @param urlPath 文件路径 * @return * @throws IOException * @return 返回base64编码 */ public static String getFileBaseStrByUrl(String urlPath) throws IOException { InputStream is = getUrlFile(urlPath); @@ -110,7 +109,7 @@ File file = null; try { File dir = new File(filePath); if(!dir.exists()&&dir.isDirectory()){//判断文件目录是否存在 if(!dir.exists()){//判断文件目录是否存在 dir.mkdirs(); } file = new File(filePath+"\\"+fileName);