问题
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.
回答1:
At this time, DIME is still the way to go as there is no MTOM implementation for .NET CF.
See also:
- 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?)
来源:https://stackoverflow.com/questions/741378/transferring-file-using-wcf