Hello, I’m developing an application that if someone digits the wrong passcode, the system takes a picture and sends it to a webserver and also saves it into the SD
The problem is that the first time the system works, the second time don’t.
Inside the picture_captured function I write the webserver code and the SD code, if I comment one of them, the other still doesn’t work, so is it a problem with the camera function? (with the webserver I’ve got a 10054 error and no photo saved, with the SD no error but still no photo saved)
Here is part of the code:
private void camera_PictureCaptured(Camera sender, GT.Picture picture)
{
SetTime();
POSTContent postData = POSTContent.CreateBinaryBasedContent(picture.PictureData);
HttpRequest reqData = HttpHelper.CreateHttpPostRequest("http://192.168.43.206/takeimage/webserver.php", postData, "image/bmp");
reqData.SendRequest();
SaveSD(picture);
Glide.MainWindow = wind4;
}
Thank you very much