Click here to Skip to main content
15,906,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: I have a problem with Convert.FromBase64String Pin
J a a n s29-Apr-09 0:04
professionalJ a a n s29-Apr-09 0:04 
Questionunit testing function Pin
BabyOreo28-Apr-09 20:23
BabyOreo28-Apr-09 20:23 
AnswerRe: unit testing function Pin
SeMartens28-Apr-09 21:05
SeMartens28-Apr-09 21:05 
GeneralRe: unit testing function Pin
BabyOreo29-Apr-09 15:03
BabyOreo29-Apr-09 15:03 
GeneralRe: unit testing function Pin
SeMartens29-Apr-09 21:09
SeMartens29-Apr-09 21:09 
QuestionCapture network Video stream? Pin
IvanBeograd28-Apr-09 20:03
IvanBeograd28-Apr-09 20:03 
AnswerRe: Capture network Video stream? Pin
IvanBeograd5-May-09 14:10
IvanBeograd5-May-09 14:10 
QuestionNot able to receive data using tcp(urgent!) Pin
patra.santanu@yahoo.co.in28-Apr-09 19:56
patra.santanu@yahoo.co.in28-Apr-09 19:56 
Hello Friends,

I need your help regarding the socket programming . Let say i am in the server system . Client has send a xml file using TCP to a specific port . My problem when i read data using NetworkStream then then it has been stopped there not able to find it out where is the problem , even it does not through any error .

But when i send and receive data to the same system ( mean to say the server and client is same ) then its working fine . I am able to receive data . But when server and client is different then the problem occurs . I am puuting the sample code . Please look into the code and help me if you people have any idea .


TcpClient c = new TcpClient("Test", 1027);
NetworkStream ns = c.GetStream(); // get stream
byte[] buf = new byte[8024]; // create byte array to receive data

ns.Read(buf, 0, 8020); // read data from stream into byte array
// read data from stream into byte array
string st = System.Text.Encoding.ASCII.GetString(buf); // convert byte array to string

// create a writer and open the file
TextWriter tw = new StreamWriter("D:\\test.txt");

// write a line of text to the file
tw.WriteLine(st.ToString());

// close the stream
tw.Close();
c.Close();

Console.WriteLine(st);
Questionsave gridview values in database Pin
grkrishna28-Apr-09 19:10
grkrishna28-Apr-09 19:10 
AnswerRe: save gridview values in database PinPopular
grkrishna28-Apr-09 22:26
grkrishna28-Apr-09 22:26 
AnswerRe: save gridview values in database [modified] Pin
sorifazlu14-Sep-11 23:26
sorifazlu14-Sep-11 23:26 
Questionfind .lib, .dll in exe Pin
RKP72828-Apr-09 19:05
RKP72828-Apr-09 19:05 
AnswerRe: find .lib, .dll in exe Pin
RKP72828-Apr-09 19:06
RKP72828-Apr-09 19:06 
QuestionHow can I get the time taken for PDF getting downloaded when it is opened on Internet Explorer? Pin
svt gdwl28-Apr-09 18:19
svt gdwl28-Apr-09 18:19 
AnswerRe: How can I get the time taken for PDF getting downloaded when it is opened on Internet Explorer? Pin
_Maxxx_28-Apr-09 19:45
professional_Maxxx_28-Apr-09 19:45 
QuestionUnable to load DLL - Why ?? Pin
matty2desmara28-Apr-09 15:53
matty2desmara28-Apr-09 15:53 
AnswerRe: Unable to load DLL - Why ?? Pin
Luc Pattyn28-Apr-09 16:31
sitebuilderLuc Pattyn28-Apr-09 16:31 
GeneralRe: Unable to load DLL - Why ?? Pin
matty2desmara29-Apr-09 4:08
matty2desmara29-Apr-09 4:08 
AnswerRe: Unable to load DLL - Why ?? Pin
jas0n2328-Apr-09 23:27
jas0n2328-Apr-09 23:27 
GeneralRe: Unable to load DLL - Why ?? Pin
matty2desmara29-Apr-09 4:20
matty2desmara29-Apr-09 4:20 
AnswerRe: Unable to load DLL - Why ?? Pin
matty2desmara29-Apr-09 4:54
matty2desmara29-Apr-09 4:54 
AnswerRe: Unable to load DLL - Why ?? Pin
S. Senthil Kumar30-Apr-09 9:53
S. Senthil Kumar30-Apr-09 9:53 
QuestionDrag drop from picturebox to desktop? Pin
Jacob Dixon28-Apr-09 13:32
Jacob Dixon28-Apr-09 13:32 
GeneralRate this tricky code : Use multiple TableAdapters within a single transaction! Pin
hdv21228-Apr-09 9:29
hdv21228-Apr-09 9:29 
GeneralRe: Rate this tricky code : Use multiple TableAdapters within a single transaction! Pin
Henry Minute28-Apr-09 10:49
Henry Minute28-Apr-09 10:49 

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.