From the course: Extend Web Application Functionality on Microsoft Azure

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Implementing the code to crop the images

Implementing the code to crop the images

- [Instructor] In previous Azure functions, we've used NuGet packages for communicating to other Azure services. However, in this case, that's not necessary since the Computer Vision Service exposes an endpoint for generating the thumbnails. So that's precisely what we're going to use in this project. So I have this already in the notepad. This is the endpoint that the cognitive service specifically the Computer Vision Service exposes for us to execute that thumbnail generation feature. Okay, so that said, we need an H TP client. So let's do this, read only and let's better use this client and private read only. I'm not going to use the intelli code suggestion. And now let's implement the contructor since we need to new up this HTTP client object. So we need the base address and we need the key that we need to pass as a header in the request. So in other words here we need some settings such as WPM storage and we're…

Contents