Download the remote file to the local filesystem first