public void copy(String src,String dest){
FileInputStream fis = null;
FileOutputStream fos = null;
try{
byte bt[]=new byte[256];
fis=new FileInputStream(src);
fos=new FileOutputStream(dest);
int size=0;
while((size=fis.read(bt))!=-1){
fos.write(bt,0,size);
}
}catch(Exception e){
e.printStackTrace();
}finally{
try{
if(null != fis) fis.close();
if(null != fos) fos.close();
}catch(Exception e){
e.printStackTrace();
}
}
}