views:

1158

answers:

1

hi, I want to send a large image to server through Wcf.I may pass it as a byte[].How can i do that.What is MTOM...where can i find a sample...?

+4  A: 

MTOM is just an optimized message encoding format. It stands for Message Transmission Optimization Mechanism and transmits as bytes instead of angle brackets (aka XML). Here is a basic introduction to using MTOM with WCF.

This small sample should get you started if you want to use streaming, which is a nice option if you want to transmit large files.

Kurt Schelfthout