• 0

WCF transferring large files netTcp vs MTOM


Question

So in WCF, MTOM provides less overhead for large binary chunks when sending them to the service. However netTcp binds directly and streams nothing but binary apparently from what I have read. So which is better for transferring large files? It would seem that netTcp would be better?

4 answers to this question

Recommended Posts

  • 0

MTOM is a scheme for compressing payload size from what I gather: http://msdn.microsoft.com/en-us/library/aa395209(v=vs.110).aspx It may or may not help. If you aren't sending large enough binaries to make a difference, you shouldn't worry about it anyway.

  • 0

I appreciate the reply! :) I shold have phrased the question  better. MTOM is able to be used with wsHttpBinding as well as netTcpBinding. I don't understand why you would use MTOM when netTcpBinding only streams binary anyway from what I have gathered. I must be missing something.

  • 0

This should answer your question: http://forums.asp.net/t/1864812.aspx?netTcpBinding+puts+the+binary+encoded+message+within+SOAP+envelope+

 

Basically, the data is transferred in a soap envelope in unencoded binary format per default with netTcpBinding. If you drop it into MTOM encoding, then it would optimize it the same as if you pushed it using the wsHttpBinding with MTOM encoding (basically some sort of compressed binary format). You could further push unencoded binary via the wsHttpBinding if you wanted to just like the netTcpBinding does per default. So if you ignore the protocol differences, the only difference from an encoding standpoint is that wsHttpBinding can also do text encoding; where as, netTcpBinding cannot.

 

Note: I have no background in the particulars here, but I'm reasonably sure this it correct.

This topic is now closed to further replies.
  • Posts

    • Guess I'll be saving the APK for future use, screw that data-harvesting copilot crap...
    • Looks like it, I have them working after the update.
    • MEmu Android Emulator 9.2.6 (offline installer) by Razvan Serea MEmu is a FREE Android emulator that brings fun of the Android experience to Microsoft Windows devices. It runs on nearly all Windows devices (PC, notebook, 2-in-1 devices, tablets). Comparing to other Android emulators, MEmu provides the highest performance and greatest compatibility. The richest features: Full Android experience with an elegant desktop Flexible customization (CPU#, memory size, resolution, device model, nav bar location, root mode, etc.) Mapping the keyboard / joystick to screen touch for much better game experience Passing through sensor data (e.g. accelerometer) to Android, so you can play car-racing like games intuitively GPS location simulation File sharing between Windows and Android Fast APK installation by drag and drop One-click Android system creation / clone / deleting, and you can run multiple Android instances simultaneously Using MEmu, you can: Have fun playing Android games on PC Chat more conveniently by using keyboard in Whatsapp, Wechat, etc. Watch live show and TV channels Ten seconds to start Directly open several Android Emulator windows MEmu Android Emulator 9.2.6 changelog: Optimized the emulator GUI to support native Windows 11 style. Optimized APK export speed, automatically export to shared directory, and display export progress. Fixed an issue where APK export could occasionally result in incomplete files on Android 12 instance. Fixed graphical corruption issues in Project Net game. Download: MEmu 9.2.6 Offline Installer | 639.0 MB (Freeware) View: MEmu Home Page | MEmu Support Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • You already have local admin rights. It is not really as bad as they say.
  • Recent Achievements

    • Week One Done
      Yawdee earned a badge
      Week One Done
    • Week One Done
      eugwalker earned a badge
      Week One Done
    • First Post
      Ben Gross earned a badge
      First Post
    • One Month Later
      chiptuning earned a badge
      One Month Later
    • Week One Done
      harveycoleman123 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      657
    2. 2
      +FloatingFatMan
      189
    3. 3
      ATLien_0
      146
    4. 4
      Xenon
      133
    5. 5
      wakjak
      107
  • Tell a friend

    Love Neowin? Tell a friend!