467,905 Members | 1,894 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,905 developers. It's quick & easy.

How to find file size?

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
  • viewed: 10963
Share:
2 Replies
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
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.

Similar topics

1 post views Thread by Harsha | last post: by
10 posts views Thread by Craig Bumpstead | last post: by
2 posts views Thread by Adam Teale | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.