I have done this little piece of code on a console app, to stream a file or to simulate a stream of data over HTTP by