at first glance, it appears that you are taking a Byte[] and assigning it to a single Byte
Byte _imgData = GetRawData(_imgPath); what happens if you change it to Byte[] _imgData = GetRawData(_imgPath); On Sat, Jun 9, 2012 at 2:29 AM, pritish <[email protected]>wrote: > I am trying to display image into uiimageview from this method > NSData.FromArray() but it gives an null reference exception my code is > 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 > > so it gives an error to me so what i try ed to solve this issue . > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Byte-array-shows-value-but-the-ImgView-Image-shows-null-tp4655273.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
