Cannot close stream until all bytes are written (GoodData API)

前端 未结 3 1397

I\'ve done a bit of searching, and most people seem to hit this when sending larger amounts of data, but I\'m not.

I\'m making a request to an API with the followin

3条回答
  •  有刺的猬
    2021-01-17 18:53

    Do not set request.ContentLength = byteArray.Length; before writing the request stream. The request.ContentLength is set automatically.

提交回复
热议问题