how to capture internet file download file info in dot net
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
精彩评论