December 2019
Beginner to intermediate
770 pages
16h 14m
English
The DownloadFile function receives a JSON object in the body via an HTTP POST request, as follows:
{ "url": "https://d365bcfilestorage.blob.core.windows.net/d365bcfiles/MasteringD365BC.png", "fileType": "image/png", "fileName": "MasteringD365BC.png"}
This function retrieves the details of the file to download from the request body and calls the DownloadBlobAsync function. Then, it returns the content of the downloaded file (Base64-encoded string):
[FunctionName("DownloadFile")]public static async Task<IActionResult> Download( [HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req, ILogger log){ log.LogInformation("C# HTTP trigger function processed a request."); try { string requestBody ...Read now
Unlock full access