Home > Net >  Stream of the position is not zero and cannot be set, how to obtain all stream content
Stream of the position is not zero and cannot be set, how to obtain all stream content

Time:09-24

Canwrite canread is true, canseek are false, the value of the position is not zero, use of StreamReader to read without access to content in front of the position

CodePudding user response:

The answer is, not ,

Some flow can't be back (CanSeek=false), the past is past,

CodePudding user response:

I met this problem, the main is to obtain the flow is not starting from scratch, which a great god knows this is how to solve?
https://blog.csdn.net/xiehanbing123456/article/details/77662967

CodePudding user response:

In front of the back, lost just can do is not to throw,

CodePudding user response:

The position is zero, not the beginning, must have read through the

CodePudding user response:

Position location is in the process of reading will be promoted, promoted the value is the original location of + is read number of bytes read before can't obtain the position in the process of data,

CodePudding user response:

To see if the basestream
  •  Tags:  
  • C#
  • Related