We can create an empty file( eg:Sample.jpg) in pictures folder as follows:
StorageFile tmp = await KnownFolders.PicturesLibrary.CreateFileAsync("Sample.jpg", CreationCollisionOption.ReplaceExisting);
We can also accomplish similar thing using FilePicker as follows:
FileSavePicker savePicker = new FileSavePicker();
savePicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
savePicker.FileTypeChoices.Add("JPG file", new List<string>() { ".jpg" });
savePicker.SuggestedFileName = "Sample.jpg"
StorageFile file = await savePicker.PickSaveFileAsync();
Both creates an empty file Sample.jpg in PicturesFolder. Is there any difference in the format of file being created in two cases? Does these two ways accomplish the same thing? If I go for the first way, can I avoid displaying file picker?