how to upload 1gb video file to mongodb using asp.net mvc

75 views
Skip to first unread message

mani raj

unread,
Feb 1, 2017, 4:42:07 PM2/1/17
to mongodb-user
Hi All

here i am facing a situation while uploading 1gb video file which was recorded by camera to mongodb using GridFS.
i am able to upload 108 or 200 mb file but not more than that.
i am getting memorystream exception.
tried with other options of MongoServer and its Upload, that one is not working.

i have tried with all the options and testing code available on internet.

I dont find any usefull pdf or tutorial or not even documentation for MongoDB with asp.net mvc, how to solve it.

Wan Bachtiar

unread,
Feb 16, 2017, 8:39:46 PM2/16/17
to mongodb-user

i am getting memorystream exception.

Hi Mani,

Could you provide the relevant details below:

  • MongoDB specific version
  • MongoDB C#/.Net driver version
  • Snippet code of your code
  • The full context of stack trace of the exception

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.

Reply all
Reply to author
Forward
0 new messages