Gets the file of a document.
Resource with a byte array containing the file or information about the error
The location of the file.