如何将byteArray转换为图像 [英] how to convert byteArray to image

查看:171
本文介绍了如何将byteArray转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将byteArray转换为图像怎么可能请帮助我

i使用asp.net平台

i am trying to convert byteArray to image how can possible that please help me
i using asp.net platform

推荐答案

试试这个 -

Try this-
byte[] MyByteArray;
var MStream = new System.IO.MemoryStream(MyByteArray);
var MyImg = Image.FromStream(MStream));





我没有执行此代码段。如果不起作用那么这里是CodeProject中的好文章

C#Image to Byte Array和Byte Array to Image Converter Class [ ^ ]



希望,它有帮助:)



I haven't executed this code snippet. If doesn't work then here is good article available in CodeProject
C# Image to Byte Array and Byte Array to Image Converter Class[^]

Hope, it helps :)


这篇关于如何将byteArray转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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