0

Some of my couchdb attachments are html files. I want to use those html files in the webview. To do this, I need the complete url to the attachment. How do I get the full path to those attachments? Which APIs should I use. I am using Couchbase library for android and Ektorp Client library.

Thanks, Pramod

1 Answer 1

0

I got the solution.

When the couchdb service is started, the ICouchBaseDelegate method onCouchBaseStarted is called with host and port values. This is stored and The url for an attachment a.html in a document doc inside a couchdb dbName is constructed like this :

url = "http://" + host + ":" + port + "/" + dbName + "/" + doc + "a.html"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.