Where did _imgData come from? what format is it in? if you try to load an invalid image (eg something that UIImage doesn't understand, or something invalid) it'll return null.
On Sat, Jun 9, 2012 at 11:02 AM, pritish <[email protected]> wrote: > > NSData _data = NSData.FromArray(_imgData); // _imgData is byte array with > length 1310450 > ImgView.Image = UIImage.LoadFromData(_data); **** Error**** > > * UIImage.LoadFromData(_data); shows an null ****it gives an Null Reference > Exception****** > while returning value to ImgView.Image.* > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Error-this-UIImage-LoadFromData-data-returns-null-tp4655276.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
