locked
How to Load Pdf From url ? RRS feed

  • Question

  • How to load pdf directly from url? I use C#.
    eg:http://beta.wms.egobzmail.com/files/deexp/2015_04/2015_04_16/DE14291484222756.pdf


    Friday, May 29, 2015 6:07 AM

Answers

  • Hello,

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

    Karl


    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

All replies

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

    byte[] bytes = myClient.DownloadData("https://www.member-data.com/files/hb/c8955fc4d6160ec0fd87f4879c6496d3.pdf");

    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.

    Karl


    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