Taking a photo and location and sending it to a server continuously
In this recipe, we will talk about many things. We will see how to continuously get an image from the camera, how to get location information, and how to send binary data to a web server. Then, moving on to the server side, we will see how to read binary data from the client and how to generate content on the fly. All of these things will be used to implement a simple monitoring system.
Getting ready
This recipe is divided into client and server sides. The client side is a mobile app acting as a special camera that's able to get image and location data and then send it to a remote server. There is also a live preview on the main form so that you can see what you are sending to the server. The server simply gets the information and stores it in the file system. This recipe is quite complex, so I avoided an actual SQL (or NoSQL) database to store all the information and used the file system.
How to do it...
Launch two instances...