Geeks With Blogs
Łukasz Kuryło's blog October 2009 Entries
asp.net /asp.net mvc snippets
Download a remote file using ASP.NET Download a remote file using ASP.NET 1: public bool DownloadFile(string url, string downloadFileName, 2: string directoryToSave, out Exception exception) 3: { 4: string fileName = downloadFileName; 5: bool result = false; 6: exception = null; 7: 8: if(String.IsNullOrEmpty(url)) 9: { 10: throw new ArgumentNullException("url"); 11: } 12: 13: if (!String.IsNullOrEmpty(dire... 14: { 15: if (!Directory.Exists(Server.M... 16: { 17: throw ......

Posted On Monday, October 5, 2009 10:06 PM

Copyright © Łukasz Kuryło | Powered by: GeeksWithBlogs.net