ReadOnlyStream.ReadAsync not working for Windows Phone 8.1
问题 I have a windows universal application catering to 8.1. I am using StreamContent.ReadAsync for reading data in chunks. My code is something like this using (Stream input = session.GetContentStream(obj, null, bytesWritten, conentStreamLength-bytesWritten).Stream) using (cancellationToken.Register(() => input.Dispose())) { if (output.Length > 0) output.Seek(output.Length, SeekOrigin.Begin); int length = (int)this.document.ContentLength; byte[] buffer = new byte[length]; int read; while ((read =