Click here to Skip to main content
15,563,228 members
Home / Discussions / C#
   

C#

 
GeneralRe: WSACancel when using RAW TCP Pin
Dave k.a. DPA18-Apr-06 2:41
Dave k.a. DPA18-Apr-06 2:41 
GeneralRe: WSACancel when using RAW TCP Pin
Dave k.a. DPA18-Apr-06 2:44
Dave k.a. DPA18-Apr-06 2:44 
GeneralRe: WSACancel when using RAW TCP Pin
Expert Coming17-Apr-06 19:48
Expert Coming17-Apr-06 19:48 
GeneralRe: WSACancel when using RAW TCP Pin
Dave k.a. DPA18-Apr-06 2:15
Dave k.a. DPA18-Apr-06 2:15 
QuestionImage Filesize in Web Page Pin
dan21517-Apr-06 9:27
dan21517-Apr-06 9:27 
AnswerRe: Image Filesize in Web Page Pin
Ed.Poore17-Apr-06 13:08
Ed.Poore17-Apr-06 13:08 
GeneralRe: Image Filesize in Web Page Pin
dan21517-Apr-06 13:45
dan21517-Apr-06 13:45 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore17-Apr-06 14:29
Ed.Poore17-Apr-06 14:29 
How about:
string uri = @"the image filename here";
WebRequest request = WebRequest.Create(uri);
WebResponse response = request.GetResponse();
Console.WriteLine("Content.Length={0}", response.ContentLength);


You can use HtmlElement.GetAttribute("src") to get the path to the image. I shouldn't think that this re-downloads the file but you never know.

[mod]It doesn't unless my 512k line just downloaded 650 meg in 1/2 a sec Laugh | :laugh: [/mod]

Ed

-- modified at 19:31 Monday 17th April, 2006
GeneralRe: Image Filesize in Web Page Pin
dan21517-Apr-06 15:41
dan21517-Apr-06 15:41 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore17-Apr-06 23:20
Ed.Poore17-Apr-06 23:20 
GeneralRe: Image Filesize in Web Page Pin
dan21518-Apr-06 8:49
dan21518-Apr-06 8:49 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore18-Apr-06 13:10
Ed.Poore18-Apr-06 13:10 
GeneralRe: Image Filesize in Web Page Pin
dan21518-Apr-06 16:08
dan21518-Apr-06 16:08 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore19-Apr-06 0:41
Ed.Poore19-Apr-06 0:41 
GeneralRe: Image Filesize in Web Page Pin
dan21519-Apr-06 9:36
dan21519-Apr-06 9:36 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore19-Apr-06 10:11
Ed.Poore19-Apr-06 10:11 
GeneralRe: Image Filesize in Web Page Pin
dan21519-Apr-06 12:36
dan21519-Apr-06 12:36 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore19-Apr-06 12:59
Ed.Poore19-Apr-06 12:59 
QuestionDataGridView/DataSet problem... Pin
mrkeivan17-Apr-06 8:59
mrkeivan17-Apr-06 8:59 
AnswerRe: DataGridView/DataSet problem... Pin
Drew McGhie17-Apr-06 12:02
Drew McGhie17-Apr-06 12:02 
GeneralRe: DataGridView/DataSet problem... Pin
mrkeivan18-Apr-06 9:50
mrkeivan18-Apr-06 9:50 
QuestionRichTextBox - LinkHover Event? Pin
Tristan Rhodes17-Apr-06 8:58
Tristan Rhodes17-Apr-06 8:58 
AnswerRe: RichTextBox - LinkHover Event? Pin
Ed.Poore17-Apr-06 13:18
Ed.Poore17-Apr-06 13:18 
QuestionHow to minimize a form Pin
mrkeivan17-Apr-06 8:56
mrkeivan17-Apr-06 8:56 
AnswerRe: How to minimize a form Pin
Eric Dahlvang17-Apr-06 11:42
Eric Dahlvang17-Apr-06 11:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.