Get file size before downloading using webclient
By Super Man
Get file size before downloading using webclient
System.Net.WebClient wc = new System.Net.WebClient();
wc.OpenRead("http://patrickkroft.com/mp3/Pearl.mp3");
Int64 bytes_total= Convert.ToInt64( wc.ResponseHeaders["Content-Length"]);
MessageBox.Show(bytes_total.ToString() + " Bytes");
Get file size before downloading using webclient (1155 Views)