Storing Image in couchbase Sever


#1

Hey guys, i just would like to ask you if storing images as base64 string in the doucment at the sever is the only way? i tried it and my sever and performance of my application is very very slow. Is there any alternative to storing images in the database beside attachment as i am unable to use them due to my use case.

Thank you:)


#2

Yes, just store them as binary.

The details will vary depending on which SDK you’re using, but for example with the Java SDK see BinaryDocument