This question must be really basic, but if you have any pointers I would really appreciate any help!
I have a Windows development project in Visual C++, and would like to send binary data (images mostly, but also other stuff) to an iPhone app over the Internet.
What is the simplest way you know how to do this? Should I use HTTP and NSUrlConnection on the iPhone, and some framework library (which?) to set up a web server inside my Visual C++ application? Or do I need to setup a proper web server like Apache (and how do I have my C++ application communicate with it then??)
So you see I am totally clueless about web technologies… if you think there is no helping me I’d appreciate book recommendations as well 🙂
Thanks a lot and cheers
Not sure a web server in your C++ application is the best idea. I would implement a simple external web server in php/java/choose your poison. I would put the web server in some hosting service on a domain I would purchase. And then of course use HTTP to manage the communication between the two. The C++ application would upload images via HTTP to the web server, and the iphone app would download them via HTTP.
Also, if you don’t want to purchase a hosting service / domain, take a look at services like Google AppEngine which is free as long as you don’t overuse it.
Check this question for making HTTP requests from C++: How do you make a HTTP request with C++?