There is intentionally not API to get the path of the file, becuase it would be a disaster if the content of the file was changed.
That is why there are only APIs to get the file contents, or a read-only file handle.
If you really need a file path, you must call the API that copies the file to a temp directory, and returns you the path to the copy.