I am running a C# server with socket connection to my clients. I want to give them the option to upload images to my server.
But when I start writing the implementation I notice that my socket buffer need to be 1M in order to store all the image data before I even handle it. And this is some thing that scares me a bit...
Is there any good practices for what I am trying to achieve. May be I am doing everything right?