Trouble saving attachment via CBL Listener (REST API)

If the body’s in the data property of an object in the _attachments property, it should be base64.

If you’re doing a direct PUT to an attachment’s URL, the HTTP body should be literally the exact data of the attachment, i.e binary data if it’s a binary format like an image.