怎么把文件对象转化为字节流

//创建字节对象  byte[] buffer; File file = new File("d://文件转字节测试文档.txt"); FileInputStream fis = new FileInputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(fis.available()); byte[] byt
相关文章
相关标签/搜索