6.7. GET /db/doc/attachment

MethodGET /db/doc/attachment
Request None
Response Returns the document data
Admin Privileges Requiredno

Returns the file attachment attachment associated with the document doc. The raw data of the associated attachment is returned (just as if you were accessing a static file. The returned HTTP Content-type will be the same as the content type set when the document attachment was submitted into the database.