I want to save uploaded files such as a user's avatar image to user collection in MongoDB, I guess the steps are:
- user upload a image;
- use a FileHandler (IHttpHandler, Asp.net) to accept the file stream in web server;
- then I get that file binary and set it to a User class object
- finally save the object, so the user collection will get the file binary data.
Am I right about this? Could you give me any clue?