traditional way with recv to save file.