I have the attachments recorded on couchdb.
To recover, I use the following code.
@RequestMapping(value = "/getDocument", method = RequestMethod.