将Byte数组转换为Image @时遇到错误newImage = Image.FromStream(ms);“ [英] I am facing error while converting Byte array to Image @ " newImage = Image.FromStream(ms);"

查看:73
本文介绍了将Byte数组转换为Image @时遇到错误newImage = Image.FromStream(ms);“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请快点做...
将Byte数组转换为Image时遇到错误@"newImage = Image.FromStream(ms);"

Please do it fast...
I am facing error while converting Byte array to Image @ " newImage = Image.FromStream(ms);"

推荐答案

这可能对您有帮助

http://forums.asp.net/t/1372698.aspx/1?Convert + byte + array + to + image [ ^ ]
This could be helpful for you

http://forums.asp.net/t/1372698.aspx/1?Convert+byte+array+to+image[^]


检查流.

ArgumentException:流没有有效的图像格式
-或-
流什么都没有.

请参阅: http://msdn.microsoft.com/en-us/library/93z9ee4x.aspx [ ^ ]
Check the stream.

ArgumentException: The stream does not have a valid image format
-or-
stream is Nothing.

See:http://msdn.microsoft.com/en-us/library/93z9ee4x.aspx[^]


这篇关于将Byte数组转换为Image @时遇到错误newImage = Image.FromStream(ms);“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆