Add attachment using JAVA SDK

Hi,

I learned about uploading Json document.

I want to upload a pdf/png/jpeg file. How do we do that?

I cannot fine and API for the same. The attachmenthttps://developer.couchbase.com/documentation/mobile/current/guides/couchbase-lite/native-api/attachment/index.html option I can find in mobile development

Attachments can only be uploaded by using Sync gateway or Couchbase lite. No support on server side as far as I know.