Upload BIG files via HTTP

后端 未结 3 1878
孤街浪徒
孤街浪徒 2020-12-08 23:42

I\'m trying to upload really big VM Images (5-15 Gb size) to an HTTP server using PowerShell.

I tried to use for that few methods (here links to script with net.WebC

3条回答
  •  旧巷少年郎
    2020-12-09 00:14

    By default HttpWebRequest is buffering data in memory. Just set HttpWebRequest.AllowWriteStreamBuffering property to false and you would be able to upload files with almost any size. See more details at msdn

提交回复
热议问题