Storing pdf documents inside couchbase

Hi all, I’d like to integrate an open source ERP system (Adempiere ERP) with couchbase storing invoice informations inside the db and also the corrisponding pdf files.
The pdf files are quite small (about 100kb) and I 'd want to store also the document information (docno, date, businesspartner, lines ect…) it’s possible to make this with couchbase ? There is a little example for doing this ? (I need to know how save and retrieve binary data)
I’ll use grails to manage these operations.

Best regards


Do you want to store the PDF in the JSON document or you want to create it using its own key?

For the second case, you can look at: