Function getAttachment

Get the attachment data from a cached message