added getRawAttachment