Stream.Length throws NotSupportedException

前端 未结 6 1886
予麋鹿
予麋鹿 2020-12-14 15:30

I am getting a error when attempting stream.Length on a Stream object sent into my WCF method.

Unhandled Exception!
 Error ID: 0
 Error Code: Unknown
 Is War         


        
6条回答
  •  情歌与酒
    2020-12-14 16:06

    TcpClient.EndRead() should return the number of bytes that are in the stream.

    --Edit, of course you need to be using a TCP Stream

提交回复
热议问题