Download audio file from blob
Hello! I'm trying to download an audio file from an open unsecured blob with a URL that starts with blob:https. I'm working on an ASP.NET Core app, .net 7, and Windows both locally and on the host in Azure.
WebClient can't handle the blob prefix.
Does anyone have another approach to how to download the file or get the stream?
4 Replies
WebClient is deprecated btw, it shouldn't be used for anything, not just file download
Try HttpClient
If it's a stream, then something like
should do
I see. That is very good info. I should look at updating the code then.
However, it is the same problem with HttpClient.
I saying that the 'blob' scheme is not supported.
Btw how did you get the code to look like that in discord?
$codegif