
chazber
4,861 PointsUpload command question
So I didn't catch the magic. She sent an upload command and didn't have to do something like add a response command. So when she ran the upload comman, did azure process it and send it back? Confused...
1 Answer

Cameron Abell
6,282 PointsYou are somewhat correct. According to documentation, the UploadData() method returns a byte array containing the body of the response from the resource. In the video, she assigns this returned data to a byte array named "response" and then deserializes it, thus letting the program output it to the console.
Here is a link to the documentation for the WebClient.UploadData method: https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.uploaddata?view=netcore-3.1
David Marquardt
13,931 PointsDavid Marquardt
13,931 PointsI'm having the exact same problem. Did you ever get it figured out?