FileOutputStream fos = new FileOutputStream("c:\\2.bmp");
FileIntputStream fis = new FileIntputStream("c:\\1.bmp");
byte[] buf = new byte[1024*8]; //这样会快一些靠大的东西能看的出来或[1024*1024]能乘很多
int len = 0;
while((len= fis.read(buf))!=-1)
{
fos.write(buf,0,len);
}