I have a database that contains over 600MB of attachments. I need to embed the mobile database WITHOUT the attachments into my app. So I created two channels: data and att. Documents without attachments are set to the data channel. Those with attachments are set to the att channel.
I have a Windows program that opens the database using only the “data” channel to give me all the data but NO documents. I then embed this database into my app.
Now, in my app, when I start my replicator using BOTH channels, nothing gets synced. I would expect the attachments to start coming over but they do not,
What am I missing?
I’m using Couchbase.Lite 2.8.6 and C# / Xamarin Forms
An example of a “att” channel document:
{
“$id”: “366312”,
“CreateDate”: “0001-01-01T00:00:00+00:00”,
“CreateUserId”: “00000000-0000-0000-0000-000000000000”,
“Error”: null,
“ErrorMessage”: null,
“IsSelected”: false,
“ModifyDate”: null,
“ModifyUserId”: null,
“RowId”: “002725c5-03fc-40af-abbe-4a8d10e7f95d”,
“Type”: “DocWithAttachment”,
“attachments": {
"blob/Image”: {
“content_type”: “image/png”,
“digest”: “sha1-7HTSGN5Ct9ihtW1YXLtWJuK41P0=”,
“length”: 84691,
“revpos”: 2,
“stub”: true
}
},
“channels”: [
“att”
]
}
1 post - 1 participant