Get Size of a File in the Internet

mBe

New member
Joined
Feb 18, 2009
Messages
3
Programming Experience
1-3
Hey guys

I already searched a little bit through the forum but couldnt find anything related to the question I got, if there's an existing thread about this already then please redirect me.

Since im coding my own download manager at the moment I'm in need of a little help. I'd like to display the filesize of every file I'm downloading, but don't really have a good idea how to get the filesize of any file in the internet.

I already had thoughts about reading out the header (few bytes) of the file itself and just read out the content.length but it just seems a little bit too much of work for a beginner. Thats why I'd like to ask if theres an easier already existing function that I could use.

Thanks for the help
Greetings mBe
 
Back
Top