Byte array shows value but the ImgView.Image shows null in ios
问题 I am trying to display an image into UIImageView through this method NSData.FromArray() but it gives an null reference exception my code is the following: Byte _imgData = GetRawData(_imgPath); // this method get the byte array of size ([131072]) NSData _data = NSData.FromArray(_imgData); ImgView.Image = UIImage.LoadFromData(_data) //in this _data shows the byte array value but the ImgView.Image shows null Byte array get the RLE Compress data. ImgView.Image = UIImage.LoadFromData(_data) _data