我收到这个错误
ReadTimeout = '((System.IO.Stream)(ms)).ReadTimeout' threw an exception of type 'System.InvalidOperationException'.
我的代码是。
byte[] imageBytes = Convert.FromBase64String(img);
MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length); //Problem generates here//
Thanks..
您可以使用读取超时/写入超时特性仅当流支持超时时。
您可以通过以下方式检查可以超时财产。如果 CanTimeout 属性返回 false,则对这些属性的所有访问should引发 InvalidOperationException。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)