downloading a file from an url to the server
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi i have given an URL say http://www.mysite.com/x.pdf now i have to download this file [x.pdf] on the server through C# code. can any one help me in this regards?
-
Hi i have given an URL say http://www.mysite.com/x.pdf now i have to download this file [x.pdf] on the server through C# code. can any one help me in this regards?
Open a webrequest and download it.
WebRequest myWebRequest= WebRequest.Create("http://www.mysite.com/x.pdf"); Stream newStream = myWebRequest.GetRequestStream();
only two letters away from being an asset