Enable reading  resource data from streams where Stream.Length is not implemented/supported. Original code from Jon Skeet : http://www.yoda.arachsys.com/csharp/readbinary.html