pub fn extract_from_image(hidden_file: &str, host_file: &str)-> Result<()> {
    let mut host_image = ContainerImage::new(host_file)?;
    host_image.setup_hidden_data_extraction();
    let mut extracted_file = FileWriter::new(hidden_file)
        .chain_err(||"Error creating destination file to store extracted data")?;
    for chunk in host_image {
        extracted_file.write(&chunk)?;
    }
    Ok(())
}
/// Extract a file hidden into an image using steganography techniques.
///
/// # Parameters:
/// * hidden_file: Absolute path to file to hide.
/// * host_file: Absolute path to image file that is going to contain hidden file.
Extract a file hidden into an image using steganography techniques.
Extract a file hidden into an image using steganography techniques .
pub fn extract_from_image(hidden_file: &str, host_file: &str)-> Result<()> {
    let mut host_image = ContainerImage::new(host_file)?;
    host_image.setup_hidden_data_extraction();
    let mut extracted_file = FileWriter::new(hidden_file)
        .chain_err(||"Error creating destination file to store extracted data")?;
    for chunk in host_image {
        extracted_file.write(&chunk)?;
    }
    Ok(())
}
pub fn extract_from_image ( hidden_file : & str , host_file : & str ) -> Result < ( ) > { let mut host_image = ContainerImage :: new ( host_file ) ? ; host_image . setup_hidden_data_extraction ( ) ; let mut extracted_file = FileWriter :: new ( hidden_file ) . chain_err ( | | " " ) ? ; for chunk in host_image { extracted_file . write ( & chunk ) ? ; } Ok ( ( ) ) }
Extract a file hidden into an image using steganography techniques.
Extract a file hidden into an image using steganography techniques .
hidden_file
&str
host_file
&str
hidden_file
&str
host_file
&str
parameters:
Absolute path to file to hide.
host_file: Absolute path to image file that is going to contain hidden file.
Absolute path to file to hide . host_file : Absolute path to image file that is going to contain hidden file .