Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Delphi Cookbook

You're reading from   Delphi Cookbook 50 hands-on recipes to master the power of Delphi for cross-platform and mobile development on Windows, Mac OS X, Android, and iOS

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781783559589
Length 328 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Daniele Teti Daniele Teti
Author Profile Icon Daniele Teti
Daniele Teti
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Delphi Basics FREE CHAPTER 2. Become a Delphi Language Ninja 3. Going Cross Platform with FireMonkey 4. The Thousand Faces of Multithreading 5. Putting Delphi on the Server 6. Riding the Mobile Revolution with FireMonkey 7. Using Specific Platform Features Index

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime