Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
AnswerRe: ReportViewer Properties in C# Pin
Abhijit Jana14-Nov-07 3:15
professionalAbhijit Jana14-Nov-07 3:15 
GeneralRe: ReportViewer Properties in C# Pin
Davood Riazi14-Nov-07 3:42
Davood Riazi14-Nov-07 3:42 
QuestionExceptions in Appdomain Pin
prasuaaron14-Nov-07 2:29
prasuaaron14-Nov-07 2:29 
QuestionC# Form and Mozilla engine Pin
springtime5414-Nov-07 2:11
springtime5414-Nov-07 2:11 
QuestionUploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 1:25
Reddy Prakash14-Nov-07 1:25 
AnswerRe: Uploading Excell file to FTP Pin
Giorgi Dalakishvili14-Nov-07 1:29
mentorGiorgi Dalakishvili14-Nov-07 1:29 
GeneralRe: Uploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 1:48
Reddy Prakash14-Nov-07 1:48 
AnswerRe: Uploading Excell file to FTP Pin
Guffa14-Nov-07 3:43
Guffa14-Nov-07 3:43 
Reddy Prakash wrote:
StreamReader sourceStream = new StreamReader("c://E3764_DetailedLevelDesign.doc");
byte[] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd());


You are reading the file as if it was a text file, this doesn't work for any binary file. If you have managed to open .doc files uploaded with this code, you have only been lucky that the files have not been too badly corrupted.

Use the File.ReadAllBytes method to read the file into an array.

Experience is the sum of all the mistakes you have done.

GeneralRe: Uploading Excell file to FTP Pin
Reddy Prakash14-Nov-07 17:01
Reddy Prakash14-Nov-07 17:01 
QuestionHow To Start Service In Setup Application Pin
Boroumandan14-Nov-07 1:13
Boroumandan14-Nov-07 1:13 
AnswerRe: How To Start Service In Setup Application Pin
Abhijit Jana14-Nov-07 1:20
professionalAbhijit Jana14-Nov-07 1:20 
QuestionProblem with invoking new thread with socket parameter Pin
Coyote.Max14-Nov-07 1:09
Coyote.Max14-Nov-07 1:09 
AnswerRe: Problem with invoking new thread with socket parameter Pin
TJoe14-Nov-07 2:13
TJoe14-Nov-07 2:13 
GeneralRe: Problem with invoking new thread with socket parameter Pin
Coyote.Max14-Nov-07 4:35
Coyote.Max14-Nov-07 4:35 
QuestionParsing strings into TimeSpans Pin
Vikram A Punathambekar14-Nov-07 1:02
Vikram A Punathambekar14-Nov-07 1:02 
AnswerRe: Parsing strings into TimeSpans Pin
Pete O'Hanlon14-Nov-07 2:19
mvePete O'Hanlon14-Nov-07 2:19 
GeneralRe: Parsing strings into TimeSpans Pin
Vikram A Punathambekar14-Nov-07 3:38
Vikram A Punathambekar14-Nov-07 3:38 
QuestionHelp with Data Export Pin
MumbleB14-Nov-07 0:40
MumbleB14-Nov-07 0:40 
AnswerRe: Help with Data Export Pin
Rob Philpott14-Nov-07 2:21
Rob Philpott14-Nov-07 2:21 
GeneralRe: Help with Data Export Pin
MumbleB14-Nov-07 7:57
MumbleB14-Nov-07 7:57 
QuestionHow to start service Pin
Boroumandan14-Nov-07 0:35
Boroumandan14-Nov-07 0:35 
AnswerRe: How to start service Pin
Abhijit Jana14-Nov-07 0:43
professionalAbhijit Jana14-Nov-07 0:43 
GeneralRe: How to start service Pin
Boroumandan14-Nov-07 0:49
Boroumandan14-Nov-07 0:49 
GeneralRe: How to start service Pin
Abhijit Jana14-Nov-07 1:10
professionalAbhijit Jana14-Nov-07 1:10 
QuestionFilecopy in windows service and win application Pin
amitcoder8314-Nov-07 0:34
amitcoder8314-Nov-07 0:34 

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.