Changed the method of transfering file content from server to client