I need to convert a UIImage to a byte array. I am using Xamarin\'s Visual Studio plugin to produce an iOS application.
The bit of code below gets the image, but I
Stream pst = img.AsPNG().AsStream();