public static void main(String[] args) throws Exception{
BufferedInputStream bis = new BufferedInputStream(new FileInputStream("D:\\wjh\\紫.mp4"));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("D:\\wjh\\紫2.mp4"));
byte[] bytes = new byte[1024];
int len;
while ((len = bis.read(bytes)) != -1){
bos.write(bytes,0,len);
}
bos.close();
bis.close();
}
39 字节缓冲流复制视频
最新推荐文章于 2022-04-20 21:13:59 发布