Learn how to write the code to create a WebRequest object which will submit the provided image to the Face Detect API.
- [Instructor] Now we are ready to submit the file…to the API, the file was loaded into the request stream…and we have our HTTP request object ready to go.…So let's make one more assumption and create a method…that would submit to the request and process the response.…And the JSON coming back as text will come…from getResponse, given an httpPost.…And you'll see the two red squiggly underlines,…those are two methods we are yet to create.…
And you'll see me do this quite often,…especially when I write unit tests.…I will make assumptions about some method that exists…and I will just specify some parameters,…knowing that that method will be able to do this work…for me, keeps my code nice and clean.…And then, of course, I have to fill in the blanks…before I finish the actual solution.…In this case, I'll just add these two methods…as static methods here in the same file.…So at the bottom, can add it in here manually,…but on line 21 we can get some help from Visual Studio.…I'll click on the name, press Control + dot,…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.