Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
Questioncommand line usage of csc Pin
waheed awan7-Oct-06 7:16
waheed awan7-Oct-06 7:16 
AnswerRe: command line usage of csc Pin
Daniel Monzert7-Oct-06 21:20
Daniel Monzert7-Oct-06 21:20 
QuestionHelp - Send a File via Socket Pin
FlyOnIT7-Oct-06 5:49
FlyOnIT7-Oct-06 5:49 
AnswerRe: Help - Send a File via Socket Pin
Andrei Ungureanu7-Oct-06 7:34
Andrei Ungureanu7-Oct-06 7:34 
GeneralRe: Help - Send a File via Socket Pin
FlyOnIT7-Oct-06 8:31
FlyOnIT7-Oct-06 8:31 
GeneralRe: Help - Send a File via Socket Pin
Andrei Ungureanu7-Oct-06 8:51
Andrei Ungureanu7-Oct-06 8:51 
GeneralRe: Help - Send a File via Socket Pin
FlyOnIT7-Oct-06 10:09
FlyOnIT7-Oct-06 10:09 
GeneralRe: Help - Send a File via Socket Pin
FlyOnIT8-Oct-06 1:14
FlyOnIT8-Oct-06 1:14 
Ok, here is the Code, what's wrong?

//Client Side
FileStream fstream = File.Open(txtPathFile.Text, FileMode.Open);
byte[] buffer = new byte[fstream.Length];
fstream.Read(buffer, 0, buffer.Length);
fstream.Close();
Send("$UploadFile," + NameFileUpload.Remove(0, NomeFileUpload.ToString().LastIndexOf(@"\")).Remove(0, 1) + "," + buffer.Length + "|");
s.Send(buffer);

//Server Side
else if (data.StartsWith("$UploadFile"))
{
string[] b = data.Split(',');
string nameFile = b[1];
string size = b[2];
byte[] buffer = new byte[Int32.Parse(size)];
sock1.Receive(buffer);
File.WriteAllBytes(@"C:\" +nameFile, buffer);
}
GeneralRe: Help - Send a File via Socket Pin
FlyOnIT8-Oct-06 8:52
FlyOnIT8-Oct-06 8:52 
Questionmicrosoft agent Pin
Mohammed Elkholy7-Oct-06 5:19
Mohammed Elkholy7-Oct-06 5:19 
QuestionHow do I submit a book review? Pin
Wolf927-Oct-06 5:12
Wolf927-Oct-06 5:12 
QuestionHelp Parsing HTML/String Pin
UFGrayMatter7-Oct-06 4:02
UFGrayMatter7-Oct-06 4:02 
AnswerRe: Help Parsing HTML/String Pin
Guffa7-Oct-06 11:49
Guffa7-Oct-06 11:49 
GeneralRe: Help Parsing HTML/String Pin
UFGrayMatter7-Oct-06 11:57
UFGrayMatter7-Oct-06 11:57 
AnswerRe: Help Parsing HTML/String Pin
Guffa7-Oct-06 12:16
Guffa7-Oct-06 12:16 
QuestionInheriting from the tabcontrol Pin
thepersonof7-Oct-06 3:01
thepersonof7-Oct-06 3:01 
AnswerRe: Inheriting from the tabcontrol Pin
Captain See Sharp7-Oct-06 4:12
Captain See Sharp7-Oct-06 4:12 
GeneralRe: Inheriting from the tabcontrol Pin
thepersonof13-Oct-06 10:48
thepersonof13-Oct-06 10:48 
QuestionFiles in folder Pin
Mohammed Elkholy7-Oct-06 2:48
Mohammed Elkholy7-Oct-06 2:48 
AnswerRe: Files in folder Pin
DownBySpj7-Oct-06 3:06
DownBySpj7-Oct-06 3:06 
QuestionRaising events in C# Pin
Mahhouraaaaaa7-Oct-06 1:44
Mahhouraaaaaa7-Oct-06 1:44 
AnswerRe: Raising events in C# Pin
Captain See Sharp7-Oct-06 4:02
Captain See Sharp7-Oct-06 4:02 
QuestionGet time Pin
mehrdadc487-Oct-06 1:39
mehrdadc487-Oct-06 1:39 
Questiongetting error code Pin
DownBySpj7-Oct-06 1:28
DownBySpj7-Oct-06 1:28 
AnswerRe: getting error code Pin
Guffa7-Oct-06 1:55
Guffa7-Oct-06 1:55 

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.