> On Sep 9, 2014, at 11:44 AM, Suresh Joshi <[email protected]> wrote: > > 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.
Yes, and I don't recall the reason that the URL accessor wasn't made part of the cross-platform API. I think it was because there are Cocoa APIs for media playback that require a file path for streaming. > 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 don't develop for Android so I don't know what Picasso or OkHttp are. Are these for downloading over HTTP? The attachments in your local database are already on the filesystem so they don't need to be downloaded. > I wanted to write a custom 'downloader' for Picasso, where I would just pull > an inputSteam from a file pointer There's already an Attachment method to get an InputStream; will that do? —Jens -- 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/AFAAFACB-ABBD-416B-9623-70B9962CC2D4%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
