Memorystream.Read() always returns 0 bytesRead with empty byte[]

后端 未结 1 1870
别那么骄傲
别那么骄傲 2020-12-20 17:54

I currently have a memorystream with length of about 30000 (Named memStream here) I wished to read this memorystream in chunks using t

相关标签:
1条回答
  • 2020-12-20 18:29

    After creating and filling the MemoryStream, you need to set the read position to the begining like so:

    memStream.Seek(0, SeekOrigin.Begin);
    
    0 讨论(0)
提交回复
热议问题