pub fn read_sync(filename: &Path) -> Result<Vec<u8>>
Expand description
Read binary file contents to a Vec<u8>
. If using within the web browser
environment, a local storage key with the name of the file
will be used and the data is assumed to be hex-encoded.