How to Load Pdf From url ? RRS feed

  • Question

  • How to load pdf directly from url? I use C#.

    Friday, May 29, 2015 6:07 AM


All replies

  • You can use WebClient.DownloadData, which has a default return value of a byte array. e.g.

    byte[] bytes = myClient.DownloadData("");

    Also, this assumes that you want the actual file in a byte array, not the content (text) of the PDF. That's a whole other ball of wax.


    Free .NET PDF library supporting convert and other operation of PDF.

    Friday, May 29, 2015 6:49 AM
  • Hello,

    I'd probably ask in the Visual C# Language forum on MSDN.


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Friday, May 29, 2015 8:25 PM