title: Detect end of file for JPG images
body: <p>I am sending many images from my server to clients in sequence, continuously through TCP.</p>
  <p>Now at the client, how should I detect efficiently that this is the end of one image so I can save it to the file system and then process the next image and so on?</p>