How to transfer "data" between two device (android,iphone)?

android, cross-platform, data-transfer, ios, p2p

Solution

While p2p is possible in some cases, you will achieve the most widespread compatibility with a client-server architecture, at the cost of having to deploy, power, connect, and maintain servers.

- You will be able to use both wifi access points and mobile (3g, etc) networks

- You have a ready place in the system to measure (or restrict) usage and/or insert ads

- You don't have to worry about firewalls blocking inbound connections to the devices (common on wifi, almost always the case on mobile)

- Relative locations of the devices are irrelevant

- You can interoperate not only with smartphones and tablets, but with traditional PCs and laptops

Problem

How can i transfer data between two device? I would like to transfer data (mostly image file) between different platforms (android,iphone). Is it possible to use p2p or should i use client-server? Any help will be appreciated.

Original source