// 复制图片 将图片1 复制到2
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
bis = new BufferedInputStream(new FileInputStream("1.png"));
bos = new BufferedOutputStream(new FileOutputStream("2.png"));
byte[] bs = new byte[1024*1024]; //这里1024 是1kb
int b = -1;
while((b=bis.read(bs))!= -1) {
bos.write(bs,0,b);
}