通过蓝牙发送Android和iPhone之间的图像文件 [英] Send image file between Android and iPhone by bluetooth

查看:227
本文介绍了通过蓝牙发送Android和iPhone之间的图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要你的帮助。

我正在做一个文件传输应用程序通过蓝牙和WiFi

I'm making a file transfer app By Bluetooth and Wifi

但我怎么也找不到来自Android的蓝牙发送文件到iPhone

But i can't find how send files from Android to iPhone by bluetooth

1)如何从Android电子文件发送到iPhone ??

1 ) How send files from Android to iPhone ??

2)为样本codeS?

2 ) Where is sample codes ?

推荐答案

在iOS上目前有两种方式发送/接收文件通过蓝牙。第一种方式是在它使用外部附件框架蓝牙经典。但这不过需要您连接到是MFI设备启用,它(据​​我所知)没有Android的手机。另一种方法是在其上使用核心蓝牙框架BLE(蓝牙低功耗)。 BLE的设计是非常低的功率,因而有一个pretty低吞吐量。它可以超过它虽然发送大型文件(如图片),但你可能将不得不削减在小片图像和数据缝合到一起在接收端。你可以阅读这里的蓝牙核心编程指南的框架:<一href=\"https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetooth_concepts.pdf\" rel=\"nofollow\">https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetooth_concepts.pdf

On iOS there are currently two ways to send/receive files over Bluetooth. The first way is over Bluetooth Classic which uses the External Accessory Framework. This does however require that the device you are connected to is MFi enabled, which (to the best of my knowledge) no Android-phone is. The other way is over BLE (Bluetooth Low Energy) which uses the Core Bluetooth Framework. BLE is designed to be very low power and thus have a pretty low throughput. It is possible to send larger files (like images) over it though, but you will probably have to cut the image in smaller pieces and stitch the data back together on the receiver side. You can read about the framework in the Core Bluetooth Programming Guide here: https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetooth_concepts.pdf

这篇关于通过蓝牙发送Android和iPhone之间的图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆