pub fn from_input_to_bytes(input: Option<&Uri>) -> Result<Vec<u8>>
Reads data from a file path or from stdin if the path is not provided.
Returns a std::io::Error on failure.
std::io::Error