Read Http Request into Byte array

后端 未结 6 1552
情话喂你
情话喂你 2021-02-05 01:15

I\'m developing a web page that needs to take an HTTP Post Request and read it into a byte array for further processing. I\'m kind of stuck on how to do this, and I\'m stumped

6条回答
  •  隐瞒了意图╮
    2021-02-05 01:54

    You can just use WebClient for that...

    WebClient c = new WebClient();
    byte [] responseData = c.DownloadData(..)
    

    Where .. is the URL address for the data.

提交回复
热议问题