//图片转为base64 FileInputStream in = new FileInputStream(file); byte[] bytes = new byte[(int) file.length()]; in.read(bytes); String base64 = new String(Base64.encodeBase64(bytes), "UTF-8");
08-22
08-22
08-22
//图片转为base64 FileInputStream in = new FileInputStream(file); byte[] bytes = new byte[(int) file.length()]; in.read(bytes); String base64 = new String(Base64.encodeBase64(bytes), "UTF-8");