Reader Level:
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.
  • 0
  • 0
  • 12324
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.

COMMENT USING

Trending up