We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Reading Project from FileStream


Is it possible to read a Project from FileStream? Please give an example if so.


Yes, the project can be read from FileStream.
Please follow the example code below:

string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);

// Read project xml into file stream
using (Stream filesStream = new FileStream(dataDir + “ReadProjectFileFromStream.xml”, FileMode.Open))
// Create project using file stream
Project project = new Project(filesStream);