public Encode(String pathBaseImage, String pathData2mask, String pathOut) {
        try {
            this.pathBaseImage = pathBaseImage;
            this.pathData2mask = pathData2mask;
            this.nameFileToMask = "tatoumina1.jpg";
            this.pathOut = pathOut;
            this.sp = new ShortPixmap(pathBaseImage);

            //permet de créer le fichier pathOut s'il n'existe pas auparavant
            new File(pathOut);

            fileToHide = new File(pathData2mask);
            long size2mask = fileToHide.length();
            System.out.println("Taille ficher à masquer " + size2mask);
            encodeHeader(size2mask, this.nameFileToMask);
            encodeData();
        } catch (IOException ex) {
            Logger.getLogger(Encode.class.getName()).log(Level.SEVERE, "fail lecture base image", ex);
        }
    }