Http: write file in binary mode.