Taking a photo and location and sending it to a server continuously
In this recipe, we'll talk about a lot of things. We'll 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'll see how to read binary data from the client and how to generate content on the fly. All 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 able to get image and location and then send it to a remote server. There is also a live preview on the main form, so you can see what you are sending to the server. The server simply gets the information and stores them in the filesystem. This recipe is quite complex, so I avoided an actual SQL (or NoSQL) database to store all the information and used the filesystem.
How to do it...
Launch two instances of Delphi and open...