N1QL querying id and attachments

Got this, thank you @jens very helpful as usual. I also add blob_%2F before the image name. Something like this
node/dbname/docid/blob_%2Fimagename