简体   繁体   中英

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

I am working with mongoDb and couchDb with node JS.
The problem I am facing is how to store rich-text content like HTML data in a key-value pair.
I could not find much help on the Internet beside encoding data using URI encoding which would be one method.
Is their any built-in methods to encode rich-text or blob data for those database engines?

When using CouchDB I would use attachments. You can read further here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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