i've tried all the code snippets regarding accessing a file through api, but none of them seem to work for me. some end up telling me the file doesn't exist and some tell me it's reached te end of te file. could someone please show me an example of how to read binary data from a file?