向服务器发送大数据包
与一些同事就我们的应用程序进行设计讨论。寻找每周一次从手机传输大型数据文件到远程服务器的最佳方法。服务器将 位于 DMZ 中,手机将处于 WiFi 模式或 GSM 模式。有些文件可达 100Mb,甚至可达 400Mb。只是不确定在我的 Android 代码中解决这个问题的最佳方法。我在看 MTOM 甚至只是纯粹的 FTP。任何建议将不胜感激。
Having a design discussion with some co-workers about our app. Looking for the best way to transfer large data files on a, say, weekly basis from a phone to a remote server. Server will
be in the DMZ and phone will either be in WiFi mode or GSM. Some of the files will be 100Mb can even get up to 400Mb. Just not sure of the best way to approach this in my Android code. I was looking at
MTOM or even just pure FTP. Any advice would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我调查了Android下MTOM的使用,但一无所获。我不知道是否有任何适用于 Android 的实现。
但这是你可以通过FTP< /a>,我认为这将是一个不错的选择。您可以使用校验和(在两侧计算然后进行比较)来检查文件的完整性。
使用 3G 传输大文件可能会花费很长时间并且费用昂贵,所以对我来说最好的是使用 WiFi。您可以检测您的设备是否通过 WiFi 连接 如此处所述。
I have investiagated about the use of MTOM under Android but I found nothing. I don't know whether there's any implementation working with Android yet.
But this is something you can do by FTP, which would be a good choice I think. And you could check the integrity of the file using a checksum (calculated on both sides and then compared).
Using 3G for huge files is likely to take long and to be expensive, so to me the best is to use WiFi. You can detect whether your device is connected thru WiFi as described here.