public void encodeData() {
        FileInputStream fileToHideInputStream = null;
        try {
            fileToHideInputStream = new FileInputStream(fileToHide);
            int content;
            //On commence à mettre le contenu à partir de l'octet 144
            int i = 144;
            while ((content = fileToHideInputStream.read()) != -1) {
                encodeByte(i, (short) content);
                i = i + 4;
            }
            //export data
            sp.write(pathOut);
            fileToHideInputStream.close();
        } catch (Exception ex) {
            Logger.getLogger(Encode.class.getName()).log(Level.SEVERE, null, ex);
        }
    }