getting the file size before downloading in android -


Can anyone tell me how to get a file size before downloading it from the server (http, Ftp or anything else) in android? Does streaming work? Please help me ..

If you create a built-in file In the AOP HTTP Library to request, you can get the file size by requesting only the header. Inside the header will be a "content-length" attribute that will display the number of bytes of the file requested. Requesting the header will not result in the file itself.


Comments