It's simpler with bytes.Buffer than with a TempFile