Hello everyone,
I am writing a console application which is using http(s) to send a couple of binary files to IIS server (an ASP.Net application). I am wondering in order to improve upload performance and reliability, which C# APIs should I use to upload files and any special points I need to consider in my scenario?
thanks in advance,
George
Bechir BejaouiRank #144 · 15.9K pointsPosted Dec 23, 2008, 11:30 AM EST
The System.Net and especially the WebClient object to transfer file via http
Deepak6 pointsPosted Dec 23, 2008, 11:50 AM EST
http://www.onedotnetway.com/code-sample-programmatically-download-file-using-c/
Regards,
Deepak
George GeorgeRank #2,261 · 618 pointsPosted Dec 23, 2008, 9:31 PM EST
Thanks Bechir,
I am not sure whether using WebClient or using WebHttpRequest or something else is faster? Any ideas?
regards,
George
George GeorgeRank #2,261 · 618 pointsPosted Dec 23, 2008, 9:32 PM EST
Thanks Deepak,
I am new to this topic. Do you have any other reference samples for upload files?
regards,
George
Bechir BejaouiRank #144 · 15.9K pointsPosted Dec 24, 2008, 5:36 AM EST
George GeorgeRank #2,261 · 618 pointsPosted Dec 24, 2008, 7:12 PM EST
Thanks for your advice, Bechir!
regards,
George
1 short reply
Bechir BejaouiRank #144 · 15.9K pointsPosted Dec 25, 2008, 6:06 AM EST