yschmitzz Posted May 30, 2012 at 07:40 AM Report #459053 Posted May 30, 2012 at 07:40 AM Como posso verificar o tamanho de um arquivo em uma url try { String url = "http://localhost:8090/UPDATES" + arquivoDownload; Console.WriteLine(url); WebClient wc = new WebClient(); Stream st = wc.OpenRead(url); StreamReader str = new StreamReader(st); FileInfo info = new FileInfo(str); da erro, o FileInfo nao busca na url, e so trabalha com String, exite algum metodo parar verificar o tamanho do arquivo ante de baixar?
poliveira1978 Posted June 1, 2012 at 01:51 PM Report #459700 Posted June 1, 2012 at 01:51 PM Acho que não podes... Para calculares o tamanho do ficheiro vais ter que o descarregar primeiro, acho eu...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now