Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ImageSource - Argument cannot be null exception

$
0
0

Sorry if this is a bit of a crosspost, but I'm having trouble telling if this is a Forms issue or an iOS one.

Basically, i'm creating an ImageSource using ImageSource.FromStream(() => memorystream), and although it gets created just fine, the form throws an (unhelpful) exception when accessing it from my ViewModel:

unhandled exception:
ArgumentNullException: Argument cannot be null.
Parameter name: data

Should I register a bug for this? its clearly a weird error to get (especially since the object was created successfully) even if the memorystream isn't valid.

As to why my memorystream may not be valid, I imaging its an iOS issue. My other thread is here: http://forums.xamarin.com/discussion/36852/trying-to-take-a-still-picture-from-an-avcapturesession#latest


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>