try this
public Image byteArrayToImage(byte[] byteArrayIn)
{
System.Drawing.ImageConverter converter = new System.Drawing.ImageConverter();
Image img = (Image)converter.ConvertFrom(byteArrayIn);
return img;
}
Related Contents:
- Image.FromStream() method returns Invalid Argument exception
- How to convert UTF-8 byte[] to string
- Reading CSV file and storing values into an array
- Remove element of a regular array
- How do I clone a range of array elements to a new array?
- How to delete an element from an array in C#
- Comparing two byte arrays in .NET
- printing all contents of array in C#
- Setting WPF image source in code
- Easiest way to compare arrays in C#
- How do I concatenate two arrays in C#?
- Getting image dimensions without reading the entire file
- Merging two images in C#/.NET
- How do arrays in C# partially implement IList?
- .NET / C# – Convert char[] to string
- Validate image from file in C#
- How do I convert struct System.Byte byte[] to a System.IO.Stream object in C#?
- Is a memory leak created if a MemoryStream in .NET is not closed?
- Why do C# multidimensional arrays not implement IEnumerable?
- Merging two arrays in .NET
- Why we have both jagged array and multidimensional array?
- Converting Bitmap PixelFormats in C#
- Declare a const array
- Download image from the site in .NET/C#
- Check if a value is in an array (C#)
- Overhead of a .NET array?
- How to “flatten” or “index” 3D-array in 1D array?
- What interfaces do all arrays implement in C#?
- How do you get the width and height of a multi-dimensional array?
- Transparent images with C# WinForms
- How can I print the contents of an array horizontally?
- What is the use of the ArraySegment class?
- High quality JPEG compression with c#
- How to find reason for Generic GDI+ error when saving an image?
- Conversion from List to array T[]
- How to get a dimension (slice) from a multidimensional array
- Correlation of two arrays in C#
- .Net Data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary — Speed, memory, and when to use each? [closed]
- How do I convert an array of floats to a byte[] and back?
- Sorting an array of folder names like Windows Explorer (Numerically and Alphabetically) – VB.NET
- MemoryStream – Cannot access a closed Stream
- Serializing/deserializing with memory stream
- Image.Save() throws exception “Value cannot be null./r/nParameter name: encoder”
- How to compare two images using byte arrays
- Extract Embedded Image Object in RTF
- Difference between the System.Array.CopyTo() and System.Array.Clone()
- Find image format using Bitmap object in C#
- How do I programmatically save an image from a URL?
- String format currency
- Is it better to declare a variable inside or outside a loop?