I need to have multiple (5~100) android clients taking pictures and simultaneously sending them to a nodejs server over a local network, the size of each picture being roughly 2~10mb. Because I have lots of clients uploading files at the same time and I need those operations to be as fast as possible websockets seem to be a good ideia since their overhead is smaller than the pure-HTTP one.
I'm kinda of lost on how to send the upload in chunks from the android clients and how to reconstruct those chunks in the nodejs server (I'm using socket.io). I found some examples but they appear to receive the entire file in a single chunk, which doesn't make sense with large files like the ones I'm expecting. I would appreciate even some abstract explanation or pseudocode.