Hi all, I noticed in iOS, there is a contentUrl for an attachment and there doesn't seem to be a publicly used analogy in the Android world. In the CBL code, I see there is a database table used to store the attachment blob location with the SHA-1 key, but it's not publicly accessible.
Basically, my use case is the same as with many people, which is I have documents with images as attachments (whether this is the best idea or not, it's how everything is set up for the next few months). I want to use Picasso to load these images and handle all my caching, but Picasso and OkHttp require a URL to hit with cache-control values set. I noticed that I can hit Sync Gateway + docId + key, and see my image attachment, however, this doesn't seem to show up with a cache-control header - can this be modded? Otherwise, if I go offline, I can no longer see images. Alternatively, what I would like to do, is that since I already have all the images on my phone, I wanted to write a custom 'downloader' for Picasso, where I would just pull an inputSteam from a file pointer, however, the .blob file and the attachment it represents aren't publicly linked. I have a rooted phone, and found the CBL database file, as well as the associated attachments directory, but I have no idea which blob file represents which attachment. Am I missing something simple here? Or has anyone done something similar before? Thanks! -SJ -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/5c20e6ae-b824-4592-903f-5211e9efde62%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
