read a pdf file from url to to byte array

后端 未结 3 1053
故里飘歌
故里飘歌 2021-02-15 23:33

In an XML WebResponse I get a URL tag which has a link to a PDF file. Example of the URL value is: https://www.member-data.com/files/hb/c8955fc4d6160ec0fd87f4

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-16 00:13

    To convert a PDF to a byte array use the static method ReadAllBytes in the System.IO namespace

提交回复
热议问题