What is the recommended way to query for attachments across multiple 
documents? For example, image thumbnails for display in a list view or grid 
view. It's not clear how best to do this in either 1.x or 2.0.

In 1.x, it looks like the file path can be constructed from the database, 
document, and attachment name, which means that attachments can effectively 
be indexed using map/reduce and queried.

In 2.0, the new *Blob* api exposes *content* and *contentStream* properties. 
The latter sounds promising, but how to access Blobs from a query? Also, is 
there a way to access the file path directly? I understand that accessing 
attachments directly as files is discouraged. However you also point out 
<https://groups.google.com/forum/#!topic/mobile-couchbase/WtRJ6t-BVDg> that 
there are APIs in iOS/OS X that only take paths as input, not NSData or 
NSStreams.

Curious to get some official guidance on this, thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/931f0f62-7360-4fbd-92d2-6f2558f32832%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to