You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
same issue! this is my code
my file is create but nothing download,
iam using 3.0.6 version!
public async void dlimage(string videoname, string imageuri)
{
var folder = await KnownFolders.VideosLibrary.CreateFolderAsync("testfolder", CreationCollisionOption.OpenIfExists);
var editShode = Regex.Replace(videoname, "[\\/:*?\"<>|]", string.Empty);
var file = await folder.CreateFileAsync(editShode, CreationCollisionOption.GenerateUniqueName);
var downloadOpt = new DownloadConfiguration()
{
ChunkCount = 2, // file parts to download, default value is 1
ParallelDownload = true // download parts of file as parallel or not. Default value is false
};
var downloader = new DownloadService(downloadOpt);
Stream destinationStream = await downloader.DownloadFileTaskAsync(imageuri);
if (destinationStream != null)
{
var bytesstream = await GetBytes(destinationStream);
await FileIO.WriteBytesAsync(file, bytesstream);
new ShowNotif(file, videoname, imageuri);
}
}
Steps to reproduce:
client.Status == DownloadStatus.Failed
.The text was updated successfully, but these errors were encountered: