Forum Xamarin.Forms

I need to save ad in image in DCIM

Hi everyone,
i need to save a picture taken with crossMedia in DCIM not only in Picture folder, how can i do it?

Best Answer


  • Perfect this work for me using System.IO.File.Copy

    var directoryname = Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "DCIM");
    string jpgFilename = Path.Combine(directoryname, picName);
    File.Copy(file.Path, jpgFilename, true);

    Thank you!

Sign In or Register to comment.