byte[]?bts?=?new?byte[1024];
int?length?=?0;
try?{
InputStream?stream?=?new?FileInputStream(file);
OutputStream?os?=?new?FileOutputStream(new?File("dest.amr"));
while?((length?=?stream.read(bts))?>?0)?{
os.write(bts,?0,?length);
}
os.flush();
os.close();
stream.close();
}?catch?(Exception?e)?{
e.printStackTrace();
}