RE: MTOM vs HttpWebRequest for file upload

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hello Russell,
\par
\par As for the file uploading from your client winform application to the server service, do you need to do additional authentication against the client before upload or at each file uploading?
\par
\par Regardless of any other requirement, from performance perspective, use HTTP POST to upload file will be more efficient because the file content is directly transfered as binary content in the http post request. While using WSE MTOM, it still use some particular encoding schema to convert the file content thus it will add some additional overhead. However, comparing to directly transfer byte[] in webservice method, using MTOM will be much more efficient.
\par
\par You can consider which approach to use according to your scenario. If there is any other questions on this, please feel free to post here.
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }