简体   繁体   English

如何在Node.js中存储MongoDB和CouchDB中的富文本数据

[英]How to store rich text data in MongoDB and CouchDB from Node.js

I am working with mongoDb and couchDb with node JS. 我正在使用mongoDb和couchDb与节点JS。
The problem I am facing is how to store rich-text content like HTML data in a key-value pair. 我面临的问题是如何在键值对中存储HTML数据等富文本内容。
I could not find much help on the Internet beside encoding data using URI encoding which would be one method. 除了使用URI编码编码数据之外,我在互联网上找不到太多帮助,这可能是一种方法。
Is their any built-in methods to encode rich-text or blob data for those database engines? 他们的任何内置方法是为这些数据库引擎编码富文本或blob数据吗?

When using CouchDB I would use attachments. 使用CouchDB时,我会使用附件。 You can read further here 你可以在这里进一步阅读

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM