InterviewSolution
| 1. |
How Can You Retrieve A Pouchdb Added Attachment? |
|
Answer» The getAttachment() METHOD is used to retrieve an attachment from the PouchDB document. This method always returns BLOB or buffer objects. You have to pass the document id and attachment id to use this method. This method ALSO accepts an optional callback FUNCTION. Syntax: db.getAttachment( docId, attachmentId, [callback] ); The getAttachment() method is used to retrieve an attachment from the PouchDB document. This method always returns blob or buffer objects. You have to pass the document id and attachment id to use this method. This method also accepts an optional callback function. Syntax: db.getAttachment( docId, attachmentId, [callback] ); |
|