使用WCF传输文件 [英] Transferring file using WCF

查看:101
本文介绍了使用WCF传输文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写WCF服务,该服务允许PC和Windows Mobile下载某些文件.对于PC,我使用MTOM将数据流传输到客户端,但是Windows Mobile似乎不支持MTOM. 如何实现一项服务来下载文件? 文件大小从100KB到10MB不等.

I'm trying to write a WCF service that allows PCs and Windows Mobiles to download certain files. For the PCs I used MTOM to stream the data to the clients but it seems that Windows Mobile does not support MTOM. How can I implement a single service to download files? The file sizes vary from 100KBs to 10MBs.

推荐答案

由于没有.NET CF的MTOM实现,因此DIME仍然是解决之道.

At this time, DIME is still the way to go as there is no MTOM implementation for .NET CF.

另请参见:

  • Dime Buffered Upload
  • WSE 3.0 cannot be used with the Compact Framework 2.0 on Mobile 5.0 devices
  • Upload and download large files - Windows Mobile (Compact Framework) via Web Services (WCF, MTOM, WCE?)

这篇关于使用WCF传输文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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