Answered by:
How to Load Pdf From url ?

-
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
- Moved by Cindy Meister MVPMVP Friday, May 29, 2015 5:52 PM not Office-related
Question
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$_"}})- Proposed as answer by Mike Laughlin Sunday, May 31, 2015 11:40 PM
- Marked as answer by Dave PatrickMVP, Moderator Sunday, June 07, 2015 6:03 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.
-
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$_"}})- Proposed as answer by Mike Laughlin Sunday, May 31, 2015 11:40 PM
- Marked as answer by Dave PatrickMVP, Moderator Sunday, June 07, 2015 6:03 PM