c# - get uri from gallery xamarin forms -


i working xamarin.forms , using code image user gallery

 protected async task pickimage()     {         try         {             stream stream = await dependencyservice.get<ipicturepicker>().getimagestreamasync();             //stream.gettype<uri>();             if (stream != null)             {                 image image = new image                 {                     source = imagesource.fromstream(() => stream),                     backgroundcolor = color.gray                 };                  cadastrar_foto_perfil.source = imagesource.fromstream(() => stream);              }              if (device.os == targetplatform.ios)             {                 loginpage.recriacadastroios();             }         } 

but...now getting putting in image, need uri selected image...does know how can using code?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -