C
C#2y 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
Angius2y 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
Accord2y 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.
Want results from more Discord servers?
Add your server