$ 0 0 You can use, FileOutputStream fos = new FileOutputStream(new File(location+fileName));fos.write(f2e); //f2e is byte array