My primary requirement is to get length (File Size) of a task stream System.Threading.Tasks.Task<System.IO.Stream>
. In a memorystream i used to get the file size using "stream.Result.Length" but when i tried to use the same in a taskstream it throws an exception saying System.NotSupportedException
, Seems like the stream doesn't support that property. I think there is a difference between memory streams and other streams.
Exception occurred handling notification:System.NotSupportedException: This stream does not support seek operations.
Could you please give me any instructions how can i achieve this i found this link which gives me the instructions. I am using .Net 3.5 therefore i cant use ConvertTo() functions that is there in .Net 4