I am trying to send a large file block by block. I was not sure how to do this until I found this piece of code and somehow it works.