Is there any one who can help me please i'm really blocked here and i need a solution--
thanks in advance
InputStream is = context.getResources().openRawResource(R.raw.haarcascade_profileface);
FileOutputStream os = new FileOutputStream(mCascadeFile);
byte[] buffer = new byte[4096]; int bytesRead; while ((bytesRead = is.read(buffer)) != -1) { os.write(buffer, 0, bytesRead); } is.close();os.close();