摘要:
/** * <p>将文件转成base64 字符串</p> * @param path 文件路径 * @return * @throws Exception */ public static String encodeBase64File(String path) throws Exception { File file = new File(path); FileInputStream inputFile = new FileInputStream(file); byte[] buffer = n... 阅读全文
摘要:
/** * 将文件转成base64 字符串 * @param path 文件路径 * @return * @throws Exception */ public static String encodeBase64File(String path) throws Exception { ... 阅读全文