开发者

how to capture internet file download file info in dot net

开发者 https://www.devze.com 2023-01-05 03:27 出处:网络
hell开发者_JAVA技巧o i am developing an dot net application in C# and i want to get the file download information like name,sizeetc

hell开发者_JAVA技巧o i am developing an dot net application in C# and i want to get the file download information like name,size etc so can any one tell me how i can do this ....Thank you...


You should use FileStream or like this not WebClient. You get file size with FileStream length method. If you want to learn file name you should parse url and get it.

I think you try to develop app like this. It has also multithreading. Look at this project.

http://www.codeproject.com/KB/IP/MyDownloader.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消