Hi Jens,
I have a little more info :
I think it is the limit of 20Mb per document because I can put images and at a moment only the small images synchronize more nothing. It would seem that the weight of the previous image remains on the document while it has been changed
Maybe update tickets with this new info: https://issues.couchbase.com/browse/CBG-789
To answer your question, here is my code (I don’t think it will help you because it is sync side that it messes up):
Set
this.android = new com.couchbase.lite.Database(name, this.config);
const document = this.android.getDocument(id).toMutable();
const nativeBlob = new com.couchbase.lite.Blob(mimeType, new java.net.URL(blob));
document.setBlob(name, nativeBlob);
Get
let document = this.android.getDocument(id) as com.couchbase.lite.Document;
if (!document) return null;
const blob = document.getBlob(name);
if (!blob) return null;
new Blob(blob);
And my config:
{
"adminInterface": "127.0.0.1:4985",
"interface": "0.0.0.0:4984",
"log": ["*"],
"databases": {
"smart-totem": {
"server": "http://***:8091",
"bucket": "***",
"username": "***",
"password": "***",
"enable_shared_bucket_access": true,
"import_docs": true,
"num_index_replicas": 0,
"users": {
"GUEST": { "disabled": true}
},
"sync": `function (doc, oldDoc) {
channel(doc.channels);
}`
}
}
}