Help to choose a binding(WCF)

前端 未结 2 1005
予麋鹿
予麋鹿 2021-01-06 17:32

I need to create WCF Application, which will be working with pictures. It allows you to get a picture as a stream, and to send a picture to server (as a stream). It will wor

2条回答
  •  伪装坚强ぢ
    2021-01-06 17:46

    Streamed response mode is not an optimal mode if you do not have very large streams. Say if your pictures are withing a couple of KB or even upto 100KB you might be better off with buffered transferMode. You can have a stream contract and buffered transfer mode where the whole data is actually buffered across but the data contract enables you to access it like a stream.

提交回复
热议问题