From the course: Azure Functions for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Implementing the Blob output binding in the Storage function - Azure Tutorial
From the course: Azure Functions for Developers
Implementing the Blob output binding in the Storage function
- [Instructor] In this video, we'll see how to upload a file to the blob storage by using the blob output binding. So we have here this blob output binding right here, which is decorating this cloud blob container object. So we're going to use that but before, let's read the body from the request. So let's await the following. Let's create a new StreamReader and let's pass the Body and then let's execute ReadToEndAsync. This is the entire JSON document as a string. And now, we're going to deserialize this entire string to a PhotoUploadModel object that we have there in the Models folder. So let's use this DeserializeObject and let's pass the PhotoUploadModel type and finally, we're going to pass the body. So we have this object in this request variable and now, we're going to create a newId because I want to create a newId when uploading a file to the blob storage. So let's use this Guid. And now, let's specify the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
What are triggers and bindings?2m 50s
-
(Locked)
Creating and preparing the project5m 22s
-
(Locked)
Implementing the Blob output binding in the Storage function5m 26s
-
(Locked)
Implementing the Blob trigger in the Resizer function6m 39s
-
(Locked)
Implementing the CosmosDB output binding in the Storage function4m 54s
-
(Locked)
Implementing the CosmosDB input binding in the Search function5m 34s
-
(Locked)
Implementing the route and Blob input bindings in the Download function7m 12s
-
(Locked)
-
-
-
-
-