I'm trying to get images to persist to local storage, then retrieve and be displayed in a listview which works fine, except when I have to run the application again the 'sandbox' style of file storage in ios deletes my images. I have followed https://forums.xamarin.com/discussion/comment/332538#Comment_332538 and others, to use relative paths, but still getting file not found exceptions for pcl local storage.
string LOCAL_STORAGE = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); //
string fileName = filename; // "Image.jpg"; // System.DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".jpg";
string filePath = System.IO.Path.Combine(LOCAL_STORAGE, "Images", fileName);
string relativePath = System.IO.Path.Combine("Images", fileName); // This is the path you save
Are there any working samples or alternatives?
Many thanks in advance.