Introducing getFileDataFromAttachment

To allow you to attempt to retrieve attachment data first locally, and
then remotely