Enable reading data from streams where Stream.Length is not implemented/supported.
Original code from Jon Skeet : http://stackoverflow.com/questions/221925/creating-a-byte-array-from-a-stream