My TCP Client receives a image within a packet.The image is compressed with zlib.The task is to decompress the image and put it on the form.
I\'m planning to save the co
You can try this code
private void t1() { FileStream f1 = new FileStream("C:\\myfile1.txt", FileMode.Open); int length = Convert.ToInt16(f1.Length); Byte[] b1 = new Byte[length]; f1.Read(b1, 0, length); File.WriteAllBytes("C:\\myfile.txt",b1); f1.Dispose(); }