public static void copyImage(String inFilePath, String outFilePath) {
        FileInputStream fin;
        FileOutputStream fout;
        try {
            fin = new FileInputStream(inFilePath);
            fout = new FileOutputStream(outFilePath);
            byte[] data = new byte[fin.available()];
            fin.read(data);
            fout.write(data);
            fout.close();
            fin.close();
        } catch (FileNotFoundException e2) {
            e2.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }