This project is read-only.

Using toucless to send web cam Images to web application

Aug 30, 2009 at 7:53 AM

Hi i was just wondering if I could use this sdk to integrate my client side web cam in my web application.

i would like to send back clicks from the camera and other information back to the server.

Thanks in advance,

Arsalan

Nov 29, 2010 at 9:51 PM

yes you can.

in .NET you can do http posts ... ( see webclient or httpwebrequest on MSDN )
in a HTTP post you can send a file , or even send your image as a BASE64 variable with some other variables.

google: bitmap to byte array.
convert byte array it to base64 string.  ( Convert.ToBase64String(..) )

google: "site:msdn.microsoft.com  httpwebrequest  POST"

the data you shoud post : String PostDATA = String.Format( "myImage={0}&mysecondvariable={1}&mythridvar={2}" , base64string , "dummyvar1" , "dummyvar2");

in php: $Image = $_POST['myImage']; (decode it, and save it as an image )
in ASP:  String base64image = Request.form['myImage'] ;   // decode .. .etc

and your done.