pub fn read_binary<P: AsRef<Path>>(file: P) -> Result<Vec<u8>>
Reads the entire contents of a file into a bytes vector.