Convert Bytes To Image
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);
精彩评论