In a case i have a stream and i want to copy the content into a network stream i do somthing like this.
NetworkStream ns=new NetworkStream(Sck);//sck is a socket of course.
stream.CopyTo(ns);
Then,in the other side im trying to get the content:
MemoryStream stream = new MemoryStream();
ns.CopyTo(stream);
But nothing actually happend.. the program stoppes after the ns.copy line.. nothing actually going on... Any idea why is this? i aleardy have algorithm to read the data but i just want to send the stream over a networkstream..