Reading attachments on server


#1

Hello,

We are using Couchbase server, Couchbase Sync Gateway and Couchbase Lite to synchronize data between server and devices and we are using the shadow functionality of Sync Gateway.

I have few questions regarding attachments and reading them on the server:

  1. Can we read attachments using Node.js SDK?
  2. Can we read attachments from the main bucket? Or are they only available from the shadow bucket?
  3. Can we read attachments from Couchbase server directly or should we send requests to Couchbase Sync Gateway instead?

Thanks,
Yuzkan


#2

There is no supported method thats available from within the SDK, but this should be possible through HTTP if the path is available.


#3

Thanks. How do I know what is the path? I know the path when using sync gateway but I don’t know it with Couchbase.