File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Meteor in Action
this week in the
Java in General
How to get the file length before download
Joined: Feb 24, 2004
Feb 24, 2004 20:39:00
I am trying to get the size of a file before downloading it. I cannot use the URL method GetContentLength because I'm using Sockets not URLs so is there any other way to do this?
Joined: Jul 15, 2003
Feb 25, 2004 13:57:00
I don't remember off-head--try posting in Sockets and Internet Protocols or some other similar forum. Or better yet, try searching that forum for the answer before posting!!!
[ February 25, 2004: Message edited by: S. C. Huey ]
I agree. Here's the link:
subject: How to get the file length before download
log4j in WebSphere5.1
Character Encoding Issue
Database read problem
Resin 2.x caching servlets
string tokenizer, reading from .txt file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015