Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialchazber
4,873 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?