ByteArray content into AttachmentEntity