views:

197

answers:

1

Easy way how to upload a large file from winforms c# to asp.net https (web service or asp.net page), with progress bar?

+2  A: 

As you've probably found out, WebClient doesn't do a great job of uploading large files. I've got some source code on Codeplex that you can look at. The project is called BizArk and the class file is WebHelper. It is based on HttpWebRequest and can be used to easily upload multiple files with progress as well as a number of other things.

Feel free to use the library as-is if you like, though it is mainly intended as reference code, not necessarily production code. I do use a version of this particular class in a production application but I don't remember if I've updated the source code with any bugs that I might have discovered after publishing it to Codeplex.

NOTE: The link is to a specific change set so if you are looking at this in the far future, you might want to make sure you are looking at the latest version.

Brian