Way to store attachments via PHP

Hey guys.

I’d like to store attachments (file contents of images) in my Couchbase Bucket.
I read this post:
Now I know that I can add attachments to documents and I know how to do this using C#, but I need to store these attachments via the PHP SDK.
Is there any way to do so or would it be possible/needed to write another PHP extension in C#?

Thanks in advance.

Hey cr41s3,

You can simply pass the binary data directly to one of the storage operations (upsert, insert, replace) and it will be stored as a binary blob in Couchbase and this same data will be returned from a get operation.

Cheers, Brett