I am passing a URL string which contains %20
(Url encoded space character) to instantiate a new Uri
object, which I use the Uri as a parameter for ImageLoader.DefaultRequestImage
.
However when I call the Scale
method of the UIImage
object, a null reference exception occurs. How can I resolve this issue?
var uri = new Uri("http://example.com/path%20with%20/image.jpg");
var image = ImageLoader.DefaultRequestImage(uri, null);
var small = image.Scale(new SizeF(32,32));