Click here to Skip to main content
15,906,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai, my task is to send a live video from web cam to multiple clients over a LAN ,
i am using UDP sockets(MFC) to creation of server and client.
i can write server and client
i have one doubt how to store captured image/video in to an array.
Posted

Make an array of images or videos ?
 
Share this answer
 
1. grabe your image using Directshow or VideoForWindow(this is my favorite one) or any other third party class from the web cam.
2. stored your BITMAP into any BYTE * [] or CHAR* [] array
3. Pump your BYTE from server ends.
4. Recieve your BYTE from the receiver ends.
5. Cast it again into BITMAP

NOTE: while transmitting BYTE its better to write your own code which will ensure the start-n-end bit & also verify number of Bytes send & received are same, else you will never be able to reproduce the image at receiver side.
 
Share this answer
 

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