title: How do I send image to server via socket.io?
body: <p>I've been beating my head over this and I can't find a proper solution.
  I want to be able to upload images to the server via socket.io emit and save them to a MongoDB database later. How do I do this? I've seen people doing it with base64 encoding but I can't figure out how that exactly works, there are other questions on this website asking about sending an image to client from server via socket.io but none about this. All help is appreciated. &lt;3</p>
  
  <p><strong>Goal:</strong> To upload an image to server with <code>socket.emit('image', someimagefile)</code> or similar.</p>
  
  <p>I'd really appreciate if you provide a similar way to send an image to the client.</p>