Aspose-PDF split and upload files to Azure storage

I am trying to implement a web application on Windows Azure. I have the code working allowing a user to upload a file to an Azure storage blob. I also have code working to split a pdf and save the split pages locally. What I need to do is upload each individual pdf page to Azure as Aspose.PDF is looping through the pages. I'll attach a screenshot of my code. The upload methods for Azure are:

  • UploadFromByteArray
  • UploadFromFile
  • UploadFromStream
  • UploadFromText

I'm not sure which one is appropriate to use with Aspose.

Thanks in advance,

Greg

I figured it out. I create a memory stream, save the pdf pages to the memory stream and then UpLoadFromStream to Azure. Working perfectly. Now hopefully I can figure out how to apply my trial license.

Hi Greg,


Thanks for using our products.

Aspose.Pdf for .NET supports the feature to save the output either to MemoryStream or to some physical location over the system.

You may consider visiting the following link for further details on Licensing.

In case of any further query, please feel free to contact.