Click here to Skip to main content
15,879,095 members
Home / Discussions / C#
   

C#

 
GeneralRe: WSACancel when using RAW TCP Pin
Dave k.a. DPA18-Apr-06 1:41
Dave k.a. DPA18-Apr-06 1:41 
GeneralRe: WSACancel when using RAW TCP Pin
Dave k.a. DPA18-Apr-06 1:44
Dave k.a. DPA18-Apr-06 1:44 
GeneralRe: WSACancel when using RAW TCP Pin
Expert Coming17-Apr-06 18:48
Expert Coming17-Apr-06 18:48 
GeneralRe: WSACancel when using RAW TCP Pin
Dave k.a. DPA18-Apr-06 1:15
Dave k.a. DPA18-Apr-06 1:15 
QuestionImage Filesize in Web Page Pin
dan21517-Apr-06 8:27
dan21517-Apr-06 8:27 
AnswerRe: Image Filesize in Web Page Pin
Ed.Poore17-Apr-06 12:08
Ed.Poore17-Apr-06 12:08 
GeneralRe: Image Filesize in Web Page Pin
dan21517-Apr-06 12:45
dan21517-Apr-06 12:45 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore17-Apr-06 13:29
Ed.Poore17-Apr-06 13: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 14:41
dan21517-Apr-06 14:41 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore17-Apr-06 22:20
Ed.Poore17-Apr-06 22:20 
GeneralRe: Image Filesize in Web Page Pin
dan21518-Apr-06 7:49
dan21518-Apr-06 7:49 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore18-Apr-06 12:10
Ed.Poore18-Apr-06 12:10 
GeneralRe: Image Filesize in Web Page Pin
dan21518-Apr-06 15:08
dan21518-Apr-06 15:08 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore18-Apr-06 23:41
Ed.Poore18-Apr-06 23:41 
GeneralRe: Image Filesize in Web Page Pin
dan21519-Apr-06 8:36
dan21519-Apr-06 8:36 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore19-Apr-06 9:11
Ed.Poore19-Apr-06 9:11 
GeneralRe: Image Filesize in Web Page Pin
dan21519-Apr-06 11:36
dan21519-Apr-06 11:36 
GeneralRe: Image Filesize in Web Page Pin
Ed.Poore19-Apr-06 11:59
Ed.Poore19-Apr-06 11:59 
QuestionDataGridView/DataSet problem... Pin
mrkeivan17-Apr-06 7:59
mrkeivan17-Apr-06 7:59 
AnswerRe: DataGridView/DataSet problem... Pin
Drew McGhie17-Apr-06 11:02
Drew McGhie17-Apr-06 11:02 
GeneralRe: DataGridView/DataSet problem... Pin
mrkeivan18-Apr-06 8:50
mrkeivan18-Apr-06 8:50 
QuestionRichTextBox - LinkHover Event? Pin
Tristan Rhodes17-Apr-06 7:58
Tristan Rhodes17-Apr-06 7:58 
AnswerRe: RichTextBox - LinkHover Event? Pin
Ed.Poore17-Apr-06 12:18
Ed.Poore17-Apr-06 12:18 
QuestionHow to minimize a form Pin
mrkeivan17-Apr-06 7:56
mrkeivan17-Apr-06 7:56 
AnswerRe: How to minimize a form Pin
Eric Dahlvang17-Apr-06 10:42
Eric Dahlvang17-Apr-06 10: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.