Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have Byte array image data,Byte[] ImageData(this is RGB 24BIT Image Data)

C#
ImageConverter ic = new ImageConverter();
Image img = (Image)ic.ConvertFrom(byteArray); // Parameter not valid
Bitmap bitmap1 = new Bitmap(img); 
Posted
Comments
Bernhard Hiller 22-Nov-13 3:24am    
How was that byte array created? Can you show us that code?

1 solution

Try:
C#
MemoryStream ms = new MemoryStream(bytes);
Image img = Image.FromStream(ms);
 
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