C
C#17mo ago
nicktheone

✅ Proper way to download a file in .NET MAUI?

New to MAUI and I was wondering what the ideal way to download a file (YAML manifest) would be. Also, is YamlDotNet still the golden standard for deserializing YAML files?
2 Replies
Angius
Angius17mo ago
With HttpClient
var bytes = await _client.GetByteArrayAsync(uri);
await File.WriteAllBytesAsync(path, bytes);
var bytes = await _client.GetByteArrayAsync(uri);
await File.WriteAllBytesAsync(path, bytes);
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.