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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -