How to store a video/image file from a server in iPhone

后端 未结 2 1425
星月不相逢
星月不相逢 2021-01-07 12:43

I want to send a video/image from one iPhone to another iPhone via a Server. I have successfully sent the file to the server using HTTP POST. But the problem is I want to re

2条回答
  •  被撕碎了的回忆
    2021-01-07 13:12

    you can use WiFi network to do the file transfer

    Use Bonjour to do it. you can start from here

    Also please see the Apple.Developer sample WiTap

    The WiTap sample application demonstrates how to achieve network communication between applications. Using Bonjour, the application both advertises itself on the local network and displays a list of other instances of this application on the network.

    Implement the connection establishment and write your own structure's to transfer you data as small chunk sizes (1024 is better)

提交回复
热议问题