ARTICLE

Uploading and Downloading Web Files

Posted by Shamim Ahmed Articles | Internet & Web October 05, 2001
This program is for beginner, shows how to use web client class to Download and upload file from the Internet and how to save them to disk. Download or upload file can be done using Method DownLoad Or UpLoad.
Reader Level:
Download Files:
 

Description

This program (DownLoad And Upload file) is for beginner, shows how to use web client class to Download and upload file from the Internet and how to save them to disk. Download  or upload file can be done using Method DownLoad Or UpLoad.

In the sample code, I have used FileStream and StreamWriter to Write file but in these case you have to convert byte to char. I read the file contents in to a array.
I have also used try and catch to catch exceptions. All subroutines are self-explanatory. Enjoy the program.

Requirement: 

.NET SDK Beta 2.

Login to add your contents and source code to this article
post comment
     
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.