public class jiami {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
BufferedInputStream bis = new BufferedInputStream(new FileInputStream("62667_05big.jpg"));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("胆小勿入.jpg"));
int b;
byte [] arr = new byte[1024];
while((b=bis.read(arr))!=-1){
System.out.println(b);
bos.write(b);
}
bis.close();
bos.close();
}