I see my error now. I'm trying to use the Java File object when what I really want is raw data from the disc. I was giving a directory and trying to open it like a file causing the error seen in the original post. It worked once I changed the path to a specific file.
I will create a new question that is more clear about what I want. Thank you.