Image Attachment in python SDK
<p>I have the below document which got synced from couchbase lite (iOS).</p>

<pre><code>        {

        "Date": "00170925591601",
        "ID": "tmp652844",
        "InvoiceNumber": "tmp652844",
        "Supplier": "Temp",
        "_attachments": {
                        "ImageAttachment": {
                                            "content_type": "image/jpeg",
                                            "digest": "sha1-8uKi9mywFwvoP8qNrTGEMWemgKU=",
                                            "length": 1898952,
                                            "revpos": 2,
                                            "stub": true
                                            }
                        },
        "channels": [
                     "payment"
                    ],
        "type": "invoice"
       }
</code></pre>

<p>How do I get the attachment from the document? I need to render the image attachment in the HTML. I believe the above attachment data is only meta data.
It would be of great help if someone can help me with this.</p>

<p>Thanks</p>

<p>How do I get the attachment from the document?
- this is a default dict with nested dicts and list inside it, you need a nested iterator function or a <a href="http://stackoverflow.com/questions/12507206/python-recommended-way-to-walk-complex-dictionary-structures-imported-from-json">recursive method</a>...</p>

python couchbase