If I have image data in an NSData, extracted from the image as follows, how do I convert this NSData object into a byte array?
NSData data = NSData.FromUrl(NSUrl.FromString(urlString));
NSData data = NSData.FromUrl(NSUrl.FromString(urlString));
byte[] dataBytes = new byte[data.Length];
System.Runtime.InteropServices.Marshal.Copy(data.Bytes, dataBytes, 0, Convert.ToInt32(data.Length));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With