package study;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class Demp {
public static void main(String[] args) throws IOException{
FileInputStream fis=new FileInputStream(“lena.jpg”);
FileOutputStream fos=new FileOutputStream(“e:\lena.jpg”);
int len;
byte[] by=new byte[1024];
while((len=fis.read(by))!=-1){
fos.write(by,0,len);
}
fis.close();
fos.close();
}
}