Works 99.9%

It adds the remaining empty bytes at the end of the file. The problem
lies in the Server class in the readFile method.