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

How to copy a picture file from device to an app's local folder?

$
0
0

I am using XLab's Camera control to select a picture from the device. The Camera Control gets me the ImageSource and I set myImage.Source to this. Fine. But now I want to copy this picture file to my app's local folder. How can I do that?

The Working with Files documentation shows me for only the Text Files, but not for any other file type.

Few questions that I have are:

  1. How to get the picture files full path+name from ImageSource, if at all possible?
  2. Can I use StreamReader and StreamWriter in Xamarin.Forms?
  3. Will use of System.IO.File.ReadAllBytes does fulfill my need?

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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