Your code is incorrect. You are reading from an empty MemoryStream. UIImage.LoadFromData works fine in MonoTouch 4.0 (and since 3.2. * From what I remember). Try using the following method, you do not need a MemoryStream if you already have an image byte buffer, for example. from FileStream:
public static UIImage GetImagefromByteArray (byte[] imageBuffer) { NSData imageData = NSData.FromArray(imageBuffer); return UIImage.LoadFromData(imageData); }
Dimitris tavlikos
source share