Image saving issue in couchbase full node

#1

i am saving image in couchbase full node as i convert into to bytes and store it against a document id.
i want to store it as attachment, so that i can sync it trough sync_gateway and use it in couchbase lite db.