Thursday, 28 February 2019

.net programmatically download a file





        /// <summary>
        ///  retrieves the created pdf file
        /// </summary>
        private void DownloadFile(string documentSourceUri, string outputFilePath)
        {
            WebClient client = new WebClient
            {
                Credentials = new NetworkCredential(_ftkGetUser, _ftkGetPassword)
            };
            client.DownloadFile(documentSourceUri, outputFilePath);
        }

No comments:

Post a Comment