Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Newbie: What is the ":" for?? Pin
Ennis Ray Lynch, Jr.10-Aug-06 4:13
Ennis Ray Lynch, Jr.10-Aug-06 4:13 
AnswerRe: C# Newbie: What is the ":" for?? [modified] Pin
LongRange.Shooter10-Aug-06 7:50
LongRange.Shooter10-Aug-06 7:50 
GeneralRe: C# Newbie: What is the ":" for?? Pin
Ennis Ray Lynch, Jr.10-Aug-06 8:23
Ennis Ray Lynch, Jr.10-Aug-06 8:23 
JokeRe: C# Newbie: What is the ":" for?? Pin
LongRange.Shooter10-Aug-06 10:34
LongRange.Shooter10-Aug-06 10:34 
Questionclient/server problem Pin
aeliminate10-Aug-06 2:20
aeliminate10-Aug-06 2:20 
AnswerRe: client/server problem Pin
Andrei Ungureanu10-Aug-06 2:37
Andrei Ungureanu10-Aug-06 2:37 
GeneralRe: client/server problem Pin
aeliminate10-Aug-06 3:21
aeliminate10-Aug-06 3:21 
GeneralRe: client/server problem Pin
Andrei Ungureanu10-Aug-06 7:31
Andrei Ungureanu10-Aug-06 7:31 
Hi,
To send a file to the client you just need to do this:
<br />
FileStream fstream = File.Open(filename,FileMode.Open);<br />
byte []buffer = new byte[fstream.Length];<br />
fstream.Read(buffer,0,buffer.Length);<br />
fstream.Close();<br />

Use the buffer instead of the Encoding.ASCII.GetBytes(). The sockets send and receive byte arrays.

Do your best to be the best

Questionhow to find the word present in the document Pin
ayyp10-Aug-06 2:08
ayyp10-Aug-06 2:08 
AnswerRe: how to find the word present in the document Pin
Not Active10-Aug-06 3:26
mentorNot Active10-Aug-06 3:26 
GeneralRe: how to find the word present in the document Pin
ayyp10-Aug-06 19:07
ayyp10-Aug-06 19:07 
GeneralRe: how to find the word present in the document Pin
Khalid Sabtan3-Jul-12 12:15
Khalid Sabtan3-Jul-12 12:15 
Questiongracefull exit Pin
Glen Harvy10-Aug-06 1:59
Glen Harvy10-Aug-06 1:59 
AnswerRe: gracefull exit Pin
Not Active10-Aug-06 2:52
mentorNot Active10-Aug-06 2:52 
AnswerRe: gracefull exit Pin
Stefan Troschuetz10-Aug-06 2:54
Stefan Troschuetz10-Aug-06 2:54 
GeneralRe: gracefull exit Pin
Glen Harvy10-Aug-06 12:30
Glen Harvy10-Aug-06 12:30 
GeneralRe: gracefull exit Pin
Stefan Troschuetz10-Aug-06 22:16
Stefan Troschuetz10-Aug-06 22:16 
AnswerRe: gracefull exit Pin
Ennis Ray Lynch, Jr.10-Aug-06 4:15
Ennis Ray Lynch, Jr.10-Aug-06 4:15 
GeneralRe: gracefull exit Pin
Glen Harvy10-Aug-06 12:36
Glen Harvy10-Aug-06 12:36 
AnswerRe: gracefull exit Pin
likefood10-Aug-06 9:41
likefood10-Aug-06 9:41 
QuestionSOAP Attachments - c# and java Pin
teluksridhar10-Aug-06 1:18
teluksridhar10-Aug-06 1:18 
QuestionDebugging SP with Sql server 2005. Pin
Ankit_748110-Aug-06 1:12
Ankit_748110-Aug-06 1:12 
QuestionExternal function Pin
thepersonof10-Aug-06 1:06
thepersonof10-Aug-06 1:06 
AnswerRe: External function Pin
Andrei Ungureanu10-Aug-06 2:49
Andrei Ungureanu10-Aug-06 2:49 
GeneralRe: External function Pin
thepersonof10-Aug-06 10:13
thepersonof10-Aug-06 10:13 

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.