开发者

Convert Bytes To Image

开发者 https://www.devze.com 2022-12-26 18:52 出处:网络
How can I convert bytes of Image to an 开发者_开发知识库Image?The simplest way is probably to wrap the byte array in a MemoryStream and then use Image.FromStream:

How can I convert bytes of Image to an 开发者_开发知识库Image?


The simplest way is probably to wrap the byte array in a MemoryStream and then use Image.FromStream:

MemoryStream ms = new MemoryStream(bytes);
Image image = Image.FromStream(ms);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号