title: How can i get UIImage from Asset Library Url in Xamarin IOS
body: <p>I want to get <code>UIImage</code> from Asset Library Url</p>
  
  <p>I'm an developing app in xamarin ios, trying to get a UIImage Object from a given Asset-Library-Url.</p>
  
  <p>Picked multiple images from gallery using <code>ELCImagePickerViewController</code>.
  All image paths are added in string array list.<br>
  Now i need to get all the images in <code>Byte[]</code> using the Asset-Library-Url path.</p>
  
  <p>The given Url is: </p>
  
  <blockquote>
    <p>assets-library://asset/asset.JPG?id=0E126068-14F9-431F-91B5-8BC397727656&amp;ext=JPG</p>
  </blockquote>
  
  <p>I tried it with the following approach :</p>
  
  <pre><code>static UIImage FromUrl(string uri)
  {
     using (var url = new NSUrl(uri))
     using (var data = NSData.FromUrl(url))
     return UIImage.LoadFromData(data);
  }
  </code></pre>
  
  <p>But it always returns null.
  Can anybody please tell me what i'm doing wrong here?</p>