i am getting memorystream exception.
Hi Mani,
Could you provide the relevant details below:
You could also try uploading the file using Stream, especially if the file is too large to load entirely into memory at once.
See also MongoDB C# .Net GridFS: Uploading Files.
Regards,
Wan.