摘要:
public String getFileBase64(String filePath) throws IOException {String base64Code = null;InputStream in = null; byte[] data = null;try{ in = new FileInputStream(filePath); data = new byte[in.available()]; in.read(data); }catch (IOException e) { e.printStackTrace(); }finally { if(in != null) ... 阅读全文