try this
public Image byteArrayToImage(byte[] byteArrayIn)
{
System.Drawing.ImageConverter converter = new System.Drawing.ImageConverter();
Image img = (Image)converter.ConvertFrom(byteArrayIn);
return img;
}
More Related Contents:
- Image.FromStream() method returns Invalid Argument exception
- How to get an image of each letter from image with text [closed]
- Setting WPF image source in code
- Getting image dimensions without reading the entire file
- Merging two images in C#/.NET
- Validate image from file in C#
- How to create bitmap from byte array?
- Is a memory leak created if a MemoryStream in .NET is not closed?
- Converting Bitmap PixelFormats in C#
- Transparent images with C# WinForms
- Download image from the site in .NET/C#
- WPF Image to byte[]
- Best way to read a large file into a byte array in C#?
- High quality JPEG compression with c#
- How to find reason for Generic GDI+ error when saving an image?
- How do I convert an array of floats to a byte[] and back?
- Combine two Images into one new Image
- How to compare two images using byte arrays
- Find image format using Bitmap object in C#
- MemoryStream – Cannot access a closed Stream
- Image.Save() throws exception “Value cannot be null./r/nParameter name: encoder”
- How do I programmatically save an image from a URL?
- How to use Resources.resx to link images
- trying to convert rgb from a .net Color to a string such as “red” or “blue”
- Memorystream.Read() always returns 0 bytesRead with empty byte[]
- How to get a MemoryStream from a Stream in .NET?
- Are there any OK image recognition libraries for .NET?
- Reduce Image size C# [closed]
- Adjust brightness, contrast and gamma of an image
- Why is .Contains slow? Most efficient way to get multiple entities by primary key?