I would like to input the mpp file from blob storage. Conver the file using Aspose.Task and then upload the file back to blob storage. I need sample code for this.
@abharana ,
please note that the interaction with blob storage is not part of our API so we cannot provide a detailed sample regarding blob storage interaction.
In general, you can start with the following template and modify it to suit your needs:
Stream mppContent = ... // Read MPP file content from a storage;
Project project = new Project(mppContent);
// Modify the project. For example, change task's name
project.RootTask.Children[0].Name = "Modified task name";
// Save the modified project to MemoryStream.
using (var ms = new MemoryStream())
{
project.Save(ms, SaveFileFormat.Mpp);
// The content of the MemoryStream can be uploaded to a storage.
}