您需要一个派生自Stream类的实例来提供Stream实现。MemoryStream是解决方案:var stream = new MemoryStream(bin.ToArray()); 其中"bin"是您的二进制实例。