By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,816 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,816 IT Pros & Developers. It's quick & easy.

How to find file size?

P: n/a
Hi All,

How can I find the file size and other information for a file in an
internet site, without downloading the file???? or is it possible at
all???

Thanks.

Aug 27 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
DBC User,

If this is a site where the file is exposed through HTTP, then you can
issue a request for the resource, but make the action HEAD. This will cause
just the headers to be returned, and you can look at the Content-Length
header.

If this is not HTTP, then it depends on the protcol that is used to get
the file.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"DBC User" <db*****@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi All,

How can I find the file size and other information for a file in an
internet site, without downloading the file???? or is it possible at
all???

Thanks.

Aug 27 '06 #2

P: n/a
Hi

There is also some code here, which you can utilize

http://www.dotnet247.com/247referenc...38/192523.aspx

I've also added this url, in case you may require.
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Prem

"DBC User" wrote:
Hi All,

How can I find the file size and other information for a file in an
internet site, without downloading the file???? or is it possible at
all???

Thanks.

Aug 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.