Is there any way of finding out the size of a file before downloading it via the get method?
GetMethod method = new GetMethod(url); method.getResponseBody();
You could try using a HeadMethod and querying the Content-Length, but that's not guaranteed to be present...
-Dom
-- | Semantico: creators of major online resources | | URL: http://www.semantico.com/ | | Tel: +44 (1273) 722222 / Fax: +44 (1273) 723232 | | Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
