Hi all,
I'm trying to build a processing pipeline using Azure Logic App.
When a form response is received it will trigger an Azure function that will create a PPTX.
The function copies a template pptx to a memory stream from Azure storage blob, makes modifications, and then uploads the stream back to the blob.
However, I am running into issues opening the presentation from the stream.
Any Ideas?
blob = container.GetBlockBlobReference("template.pptx");
Stream inStream = new MemoryStream();
blob.DownloadToStream(inStream);
using (IPresentation pptxDoc = Presentation.Open(inStream))
{
/* Make modifications here */
pptxDoc.Save(inStream);
blob.UploadFromStream(inStream);
return new HttpResponseMessage(HttpStatusCode.OK);
}