I am capturing images from a smart camera imager and receiving the byte array from the camera through socket programming (.NET application is the client, camera is the serve
Try this:
public Image byteArrayToImage(byte[] item) { Image img=Image.FromStream(new MemoryStream(item)); img.Save(Response.OutputStream, ImageFormat.Gif); return img; }
Hope it helps!