Chapter 3.  Receive and save a stream