Maybe instead of the File component or extensions, you can use the SAF extension that bypasses some of Android's limitations? From what I saw, it has a block for reading the file's bytes.
SAF extension can read as well as write in 3 different ways: text, bytes and hex.
Though I feel it is quite confusing for newbies and they should stay from complicated things.
Even I check/test methods before giving an answer related to it.