How to upload a file to a WCF Service?

前端 未结 4 1134
半阙折子戏
半阙折子戏 2020-12-09 09:32

I\'ve build a WCF Service to accept a file and write it to disk. The front-end consists of a page with SWFUpload which is handling the upload on the client side. Apparently,

4条回答
  •  有刺的猬
    2020-12-09 10:25

    What you want to use is probably MTOM, if you want it to be standard. Using this, you can have MIME multiparts messages.

    You then have to read the file as a stream and stuff it into one of the parameters of the request.

提交回复
热议问题