Download the attachment and return it as a ByteArray.
Note: This will load the entire file into memory. If you're just downloading the attachment to a file, use one of the other functions.