On Friday, January 2, 2015 at 2:37:28 AM UTC-8, Olivier Picciotto wrote: > > Hello, > > Displaying and image attachment using phonegap should be very simple as > you could use a > > <img src="http://localhost:<port>/<database>/<docid>/<attachmentname" /> > > To display an attachment image.. > > I tested this and it works properly on Android. The img src URL needs to include the basic auth credentials in the form http://user:pass@host:port/dbname/docid/attachment.file
> Unfortunately, as Couchbase Lite on android requires basic authentication > to be accessed by http requests , this will fail with a 401 error. Basic > Auth can be done easily using ajax but in this case it is the webview > issuing directly the HTTP request to get the image.. So how can we set up > the basic Auth crendentials ? > > > -- 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/c04a55bf-ccf8-48d7-a628-24a8e2884ab1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.