I’m trying to Update a specific document with attachment, but the blob attached remains the same after update. I already pull the specific document and update it using MutableDocument mutableDocument = database.getDocument(data.get("docId").toString()).toMutable(); then set the new blob mutableDocument.setBlob("profilePic", (Blob) data.get("profilePic"));. Finally using the replicator I pushed it in the server.
Can you detail which versions/platforms of Couchbase Lite and Sync Gateway you are using?
Could you also provide your Sync Gateway config? Be sure to remove passwords, etc. from it before posting.
OK, thanks
In the meantime I decided to create a specific document for each image and delete it and create a new one when the image is updated
It’s heavier but at least it works …