Alguem pode me dizer pq o metodo getLength de HttpConnection retorna -1, já q o servidor transmite dados de volta.
ta escrito na documentacao:
[quote]Returns:
the content length of the resource that this connection’s URL references, or -1 if the content length is not known.[/quote]
ou seja, retorna -1 qndo d alguma forma nao se consegue saber tal tamanho