Click here to Skip to main content
16,009,343 members
Home / Discussions / C#
   

C#

 
QuestionSystem.Type from class name string, interface support and instantiation Pin
peterchen19-Apr-07 6:54
peterchen19-Apr-07 6:54 
AnswerRe: System.Type from class name string, interface support and instantiation Pin
hamid_m19-Apr-07 7:41
hamid_m19-Apr-07 7:41 
AnswerRe: System.Type from class name string, interface support and instantiation [modified] Pin
Kythen20-Apr-07 10:57
Kythen20-Apr-07 10:57 
GeneralRe: System.Type from class name string, interface support and instantiation Pin
peterchen20-Apr-07 11:44
peterchen20-Apr-07 11:44 
QuestionSimple question Does any have a nice control derived from IToolboxService? Pin
Christopher Stratmann19-Apr-07 6:28
Christopher Stratmann19-Apr-07 6:28 
QuestionMaster/details Pin
hadad19-Apr-07 5:26
hadad19-Apr-07 5:26 
AnswerRe: Master/details Pin
Dmitry Khudorozhkov19-Apr-07 14:12
Dmitry Khudorozhkov19-Apr-07 14:12 
QuestionIList implementation with change event? Pin
peterchen19-Apr-07 5:20
peterchen19-Apr-07 5:20 
Answer[sort of solved] Pin
peterchen19-Apr-07 6:59
peterchen19-Apr-07 6:59 
AnswerRe: IList implementation with change event? Pin
Leslie Sanford19-Apr-07 8:53
Leslie Sanford19-Apr-07 8:53 
GeneralRe: IList implementation with change event? Pin
peterchen19-Apr-07 13:29
peterchen19-Apr-07 13:29 
QuestionGenerate a form by using form name as string Pin
ayca19-Apr-07 5:02
ayca19-Apr-07 5:02 
AnswerRe: Generate a form by using form name as string [modified] Pin
Tarakeshwar Reddy19-Apr-07 5:09
professionalTarakeshwar Reddy19-Apr-07 5:09 
QuestionRe: Generate a form by using form name as string Pin
CPallini19-Apr-07 5:19
mveCPallini19-Apr-07 5:19 
AnswerRe: Generate a form by using form name as string Pin
Tarakeshwar Reddy19-Apr-07 5:22
professionalTarakeshwar Reddy19-Apr-07 5:22 
AnswerRe: Generate a form by using form name as string Pin
Colin Angus Mackay19-Apr-07 5:17
Colin Angus Mackay19-Apr-07 5:17 
Question"pipe" messages to a windows textbox (or other windows pane) [modified] Pin
Ashley Sanders19-Apr-07 4:32
Ashley Sanders19-Apr-07 4:32 
AnswerRe: "pipe" messages to a windows textbox (or other windows pane) Pin
Dave Kreskowiak19-Apr-07 5:10
mveDave Kreskowiak19-Apr-07 5:10 
AnswerRe: "pipe" messages to a windows textbox (or other windows pane) Pin
Luc Pattyn19-Apr-07 7:53
sitebuilderLuc Pattyn19-Apr-07 7:53 
QuestionFile transfer Pin
Niiiissssshhhhhuuuuu19-Apr-07 3:57
Niiiissssshhhhhuuuuu19-Apr-07 3:57 
AnswerRe: File transfer Pin
Dave Kreskowiak19-Apr-07 4:30
mveDave Kreskowiak19-Apr-07 4:30 
AnswerRe: File transfer Pin
Judah Gabriel Himango19-Apr-07 4:46
sponsorJudah Gabriel Himango19-Apr-07 4:46 
AnswerRe: File transfer Pin
pbraun19-Apr-07 5:04
pbraun19-Apr-07 5:04 
GeneralRe: File transfer Pin
Dave Kreskowiak19-Apr-07 5:07
mveDave Kreskowiak19-Apr-07 5:07 
GeneralRe: File transfer Pin
Niiiissssshhhhhuuuuu19-Apr-07 17:44
Niiiissssshhhhhuuuuu19-Apr-07 17:44 
Thanks for your reply...

I am not using TextReader/Writer ,I am using Filestream to write in the file....my code is as below,

stream = client.GetStream();
writer = new System.IO.StreamWriter(stream);
freader = new System.IO.FileStream(@"d:\AJAX_process.jpg", System.IO.FileMode.Open);
long length = freader.Length;

writer.WriteLine(length.ToString());
writer.Flush();

byte[] buffer = new byte[length];
freader.Read(buffer, 0,(Int32)length);
freader.Flush();
freader.Close();

//write buffer to network stream//
stream.Write(buffer, 0,(Int32)length);
stream.Flush();
stream.Close();
writer.Close();

One more question....
Do I need tto sent byte after byte....??


Regards Rose | [Rose] ,

nishu

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.