0

I use this BlobTrigger in c# to see, if there are changes in the blob. This sounds find, but how can I send this message from the Azure Function BlobTrigger to my Webapp? For example I want to display the "Name" of the blob, which was detected by the Azure Function on the html site (which is the WebApp) for Endusers. I did search but can't found the good answer. At the moment I can only output the message on the Console, but not sending this to any WebEndpoints. Would be great if someone can share his experiences.

    [FunctionName("BlobTriggerCSharp")]        
public static void Run([BlobTrigger("samples-workitems/{name}")] Stream myBlob, string name, ILogger log)
{
    log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
}
teddy1995
  • 61
  • 1
  • 7
  • I was curious about the REST API to reach out the Blobstorage, is this only possible when using HTTPTrigger in Azure Functions? How can I updated the information on my webapps, which is connected to the blobstorage. Do you also use REST API or Azure Functions? Which is a better solution? – teddy1995 Jul 10 '20 at 20:00
  • just do a post to your api passing the parameter name in the request – Thiago Custodio Jul 10 '20 at 20:17
  • can you show me some codes? Thanks – teddy1995 Jul 12 '20 at 12:00
  • I am not very clear about your problem, can you describe it in detail? According to my own understanding, if your web app has a corresponding interface, you can call this interface using `HttpClient`. – Frank Borzage Jul 13 '20 at 03:12
  • Hi Frank Gong, I save the data on blobstorage and want to display it on the webapp. Means if someone uploaded a file on blob, the webapp will catch the file and show it on the site. – teddy1995 Jul 13 '20 at 07:18

0 Answers0