Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to send video through TCP . Video file format will be in .mov .Pls help me on the same
Posted
Comments
Sergey Alexandrovich Kryukov 22-Nov-12 1:38am    
Not a question. You need to explain more on what you want to achieve. Send where? Why? Why TCP? Start with your ultimate goal.
--SA
Member 8605883 22-Nov-12 3:02am    
I need to send a video and Image captured and saved in the system to another system .for that i am using TCP protocol [ASP.Net & C#] to transfer the data.
Image i could able to transfer through below code but not video.
Socket Client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Client.Connect("120.0.0", 10);

Bitmap bmp = new Bitmap(@"C:\Documents and Settings\hh\Desktop\SystemInfo.jpg");
MemoryStream ms = new MemoryStream();



bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);

// read to end
byte[] bmpBytes = ms.ToArray();
Client.Send(bmpBytes , bmpBytes .Length, 0);

pls help on me on the same

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900