There is a way to save binary as attachment from Spring project?

I am migrating my data from sql server to couchbase, my entity has a blob field, which I need to store as attachment as it is done in couchbase lite. Is there any way to do it?

Use BinaryCollection.

If you are using spring-data-couchbase, the Couchbase Java SDK is directly accessible via. couchbaseTemplate.getCouchbaseClientFactory().getCluster()

Thanks that works for me!

Thanks for sharing the solution ,this is helpful for me.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.