0

我的一些 couchdb 附件是 html 文件。我想在 webview 中使用那些 html 文件。为此,我需要附件的完整 url。如何获得这些附件的完整路径?我应该使用哪些 API。我正在为 android 和 Ektorp 客户端库使用 Couchbase 库。

谢谢,普拉莫德

4

1 回答 1

0

我得到了解决方案。

当 couchdb 服务启动时,使用和值调用该ICouchBaseDelegate方法。这是存储的,并且couchdb 内文档中附件的 url构造如下:onCouchBaseStartedhostporta.htmldocdbName

url = "http://" + host + ":" + port + "/" + dbName + "/" + doc + "a.html"
于 2012-02-01T19:42:54.767 回答