Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am new to mongodb and read about the GridFS for storing Files but when i am storing Files in GridFS, I am facing two problems

1) When I am writing a file into GridFS using C Driver, havinge same filename as a file stored earlier, the first file is going to be overwritten. So I am wondering that Is it actually true that the same filename can only exist once in the database or am I doing something wrong? If it is true then how can i write both files in the database system?

2) When I am writing back the files from the database to the disk, the file is corrupted. I read on the net that C Driver has some bugs related to this issue. So is there anyone who can tell me whether that bug is fixed or not?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.