Click here to Skip to main content
14,875,986 members
Home / Discussions / C#
   

C#

 
GeneralRe: write file question Pin
PIEBALDconsult7-Aug-08 3:47
professionalPIEBALDconsult7-Aug-08 3:47 
GeneralRe: write file question Pin
Alan Balkany7-Aug-08 3:52
MemberAlan Balkany7-Aug-08 3:52 
AnswerRe: write file question Pin
#realJSOP7-Aug-08 4:09
mva#realJSOP7-Aug-08 4:09 
GeneralRe: write file question Pin
Wes Aday7-Aug-08 4:11
professionalWes Aday7-Aug-08 4:11 
GeneralRe: write file question Pin
#realJSOP7-Aug-08 4:18
mva#realJSOP7-Aug-08 4:18 
GeneralRe: write file question - OT Pin
Wes Aday7-Aug-08 8:57
professionalWes Aday7-Aug-08 8:57 
JokeRe: write file question Pin
darkelv7-Aug-08 19:30
Memberdarkelv7-Aug-08 19:30 
QuestionProblem with Byte Pin
softwarejaeger7-Aug-08 3:17
Membersoftwarejaeger7-Aug-08 3:17 
Hello,

i have a problem with following code:

byte[] Buffer = new byte[clientConnection.ReceiveBufferSize-1];

int i = clientConnection.GetStream().Read(Buffer, 0, clientConnection.ReceiveBufferSize-1);

String result = System.Text.Encoding.ASCII.GetString(Buffer,0,clientConnection.ReceiveBufferSize-1);
Console.WriteLine("INCOMING PACKAGE: " + result);

So there i want to read something from a TCPClient-Stream, but it doesnt work really. Yes i get my data, but with the data a lot of "space bars". Well my string should look like this:

"INCOMING PACKAGE: Hello World!" but it looks like "INCOMING PACKAGE: Hello World! ..." (Buffer Length was over 8000 Bytes long)

So how to solve this problem? What do i wrong?
AnswerRe: Problem with Byte Pin
leppie7-Aug-08 3:32
Memberleppie7-Aug-08 3:32 
GeneralRe: Problem with Byte Pin
softwarejaeger7-Aug-08 3:36
Membersoftwarejaeger7-Aug-08 3:36 
GeneralRe: Problem with Byte Pin
leppie7-Aug-08 3:43
Memberleppie7-Aug-08 3:43 
GeneralRe: Problem with Byte Pin
#realJSOP7-Aug-08 4:19
mva#realJSOP7-Aug-08 4:19 
GeneralRe: Problem with Byte Pin
softwarejaeger7-Aug-08 3:58
Membersoftwarejaeger7-Aug-08 3:58 
AnswerRe: Problem with Byte Pin
#realJSOP7-Aug-08 4:16
mva#realJSOP7-Aug-08 4:16 
GeneralRe: Problem with Byte Pin
leppie7-Aug-08 5:15
Memberleppie7-Aug-08 5:15 
GeneralRe: Problem with Byte [modified] Pin
#realJSOP7-Aug-08 5:50
mva#realJSOP7-Aug-08 5:50 
GeneralRe: Problem with Byte [modified] Pin
Daniel Grunwald7-Aug-08 6:24
MemberDaniel Grunwald7-Aug-08 6:24 
AnswerRe: Problem with Byte Pin
Daniel Grunwald7-Aug-08 6:32
MemberDaniel Grunwald7-Aug-08 6:32 
QuestionExcel Pin
ellllllllie7-Aug-08 3:11
Memberellllllllie7-Aug-08 3:11 
AnswerRe: Excel Pin
Indivara7-Aug-08 4:56
professionalIndivara7-Aug-08 4:56 
QuestionC# Packet Question Pin
Spiro Floropoulos7-Aug-08 2:29
MemberSpiro Floropoulos7-Aug-08 2:29 
AnswerRe: C# Packet Question Pin
leppie7-Aug-08 2:51
Memberleppie7-Aug-08 2:51 
GeneralRe: C# Packet Question Pin
Spiro Floropoulos7-Aug-08 2:58
MemberSpiro Floropoulos7-Aug-08 2:58 
GeneralRe: C# Packet Question Pin
leppie7-Aug-08 3:02
Memberleppie7-Aug-08 3:02 
GeneralRe: C# Packet Question Pin
leppie7-Aug-08 3:03
Memberleppie7-Aug-08 3:03 

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.