Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 241
anix Avatar asked Aug 07 '12 11:08

anix


1 Answers

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

like image 53
javabeangrinder Avatar answered Nov 15 '22 06:11

javabeangrinder