public static void main(String[] args) throws IOException {
BufferedInputStream bis = new BufferedInputStream(new FileInputStream("c:/aaa/22.png"));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("c:/b/xixi.png"));
byte[] buf = new byte[4 * 1024];
int length;
while ((length = bis.read(buf)) != -1) {
bos.write(buf, 0, length);
}
bos.close();
bis.close();
}