Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to convert byteArray to image how can possible that please help me
i using asp.net platform
Posted

1 solution

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


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 :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900