I have uploaded PDF/PST file in mongodb by mongofiles, but when retrieving it in R(BSON) and converting it to "Character" type, I couldn't find the PDF/PST file. Is it possible to upload
PDF file or PST file? Which file formats does mongodb support (other than CSV,TSV,TXT,audio) ?
Mongodb – Does mongodb support non readable files
mongodb
Related Question
- Mongodb – Sudden Mongodb high connections/queues, db stops responding
- MongoDB Sharding – Chunks Allocated Only to Primary
- Mongodb – How to compare 1000 items every minute over 1 million records in mongodb without pulling all the data
- Mongodb – Restore mongoDB by –repair and WiredTiger
- Mongodb – How to influence files (pre)allocation steps (max growing value) in MongoDB 3.4 with WiredTiger
- Postgresql – How to import the _id index from a MongoDB collection as a hash index for a PostgreSQL table (from a CSV export from MongoDB)
Best Answer
BSON has a Binary data type in which you can store anything you want. MongoDB sees it as a binary blob and does not care what type of data it is, so of course ot is possible to store PDF files. MongoDB documents are limited to 16 MB in size, so if you need to store large data, try GridFS.
http://blog.mongodb.org/post/183689081/storing-large-objects-and-files-in-mongodb