I have followed the development/discussions of Blobs and attachments for a while.
As I understand it they don’t blend in well if you need to access blobs as attachments server side and vice versa.
I have an app where I can add photos server side as well as on the mobile - and remove them in both places. So the user sees his/her data as a global thing that they can access equally on either mobile or in a browser (server). Due to the various “hacks” I saw when starting the migration to Couchbase a while back I decided to save these images as base64 encoded text strings. This works fine - but I would rather save the images as byte arrays. Then I could get rid of the transformation to/from base64 text and it would take up less space.
If I look at the CBL side it seems compellingly easy to work with: https://docs.couchbase.com/couchbase-lite/2.6/csharp.html#blobs - however, I’m curious as to:
- How to save the blob server side (using the Java SDK)?
- Any “challenges” with sync’ing (filters, sync. function, etc.)
I’m using Community Edition 6 (latest) server, latest .Net SDK on mobile and Java SDK 2.5.7 on the server (due to an error found in later SDKs)
Thanks for any thoughts in advance