Click here to Skip to main content
15,867,939 members
Home / Discussions / C#
   

C#

 
AnswerRe: When to override Equals() ? Pin
Henry Minute22-Oct-09 6:41
Henry Minute22-Oct-09 6:41 
AnswerRe: When to override Equals() ? Pin
DaveyM6922-Oct-09 6:47
professionalDaveyM6922-Oct-09 6:47 
Questioni need a help to convert class to byte [] array Pin
b.sahahf22-Oct-09 4:55
b.sahahf22-Oct-09 4:55 
AnswerRe: i need a help to convert class to byte [] array Pin
Eddy Vluggen22-Oct-09 5:01
professionalEddy Vluggen22-Oct-09 5:01 
GeneralRe: i need a help to convert class to byte [] array Pin
b.sahahf22-Oct-09 5:03
b.sahahf22-Oct-09 5:03 
GeneralRe: i need a help to convert class to byte [] array Pin
Eddy Vluggen22-Oct-09 5:15
professionalEddy Vluggen22-Oct-09 5:15 
GeneralRe: i need a help to convert class to byte [] array Pin
stancrm22-Oct-09 6:12
stancrm22-Oct-09 6:12 
QuestionDownloading PDF's from website Pin
Tom Wright22-Oct-09 4:16
Tom Wright22-Oct-09 4:16 
I wrote a program that will find all links to PDF's on a site and download them. However when I look at the downloaded PDF's they are all the same size and corrupted. If I download them via IE they are differnt sizes and they open just fine.

My download code is:

Webclient wc = new WebClient();
wc.DownLoadFile("http://www.somesite.com/somepage/somefile.pdf", "c:\site\somefile.pdf");

I get no errors. I'm not sure if this makes a difference but if I look at the source of the site they have the href to the pdf as href="/somepage/somefile.pdf" I string the hostname to the front of the URL.

I know I can do an httpwebrequest but how will I know how big to make my buffer.

Suggestions?

Thanks

Tom Wright
tawright915@gmail.com

AnswerRe: Downloading PDF's from website Pin
Covean22-Oct-09 4:42
Covean22-Oct-09 4:42 
GeneralRe: Downloading PDF's from website Pin
Tom Wright22-Oct-09 4:49
Tom Wright22-Oct-09 4:49 
GeneralRe: Downloading PDF's from website Pin
Covean22-Oct-09 5:07
Covean22-Oct-09 5:07 
GeneralRe: Downloading PDF's from website Pin
Tom Wright22-Oct-09 7:20
Tom Wright22-Oct-09 7:20 
GeneralRe: Downloading PDF's from website Pin
Covean22-Oct-09 21:06
Covean22-Oct-09 21:06 
QuestionAmbiguous constructor signatures? Pin
Clive D. Pottinger22-Oct-09 3:41
Clive D. Pottinger22-Oct-09 3:41 
AnswerRe: Ambiguous constructor signatures? Pin
DaveyM6922-Oct-09 4:58
professionalDaveyM6922-Oct-09 4:58 
GeneralRe: Ambiguous constructor signatures? Pin
Keith Barrow22-Oct-09 5:09
professionalKeith Barrow22-Oct-09 5:09 
GeneralRe: Ambiguous constructor signatures? Pin
Clive D. Pottinger22-Oct-09 7:34
Clive D. Pottinger22-Oct-09 7:34 
GeneralRe: Ambiguous constructor signatures? Pin
Keith Barrow22-Oct-09 11:46
professionalKeith Barrow22-Oct-09 11:46 
GeneralRe: Ambiguous constructor signatures? Pin
Clive D. Pottinger23-Oct-09 6:31
Clive D. Pottinger23-Oct-09 6:31 
Questionproxy server Pin
Zeyad Jalil22-Oct-09 3:28
professionalZeyad Jalil22-Oct-09 3:28 
QuestionReading grayscale values into Bitmap Pin
econner22-Oct-09 2:33
econner22-Oct-09 2:33 
AnswerRe: Reading grayscale values into Bitmap Pin
stancrm22-Oct-09 2:52
stancrm22-Oct-09 2:52 
QuestionFilter Gridview that are bound to an XML file Pin
Ronni Marker22-Oct-09 2:19
Ronni Marker22-Oct-09 2:19 
AnswerRe: Filter Gridview that are bound to an XML file Pin
stancrm22-Oct-09 2:30
stancrm22-Oct-09 2:30 
GeneralRe: Filter Gridview that are bound to an XML file Pin
Ronni Marker22-Oct-09 2:33
Ronni Marker22-Oct-09 2:33 

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.