C# C# Streams and Data Processing Streaming Data on the Net Text Analytics API Part 2

Upload 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...

I'm having the exact same problem. Did you ever get it figured out?

1 Answer

Cameron Abell
Cameron Abell
6,282 Points

You 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