private void InstallFromUpload() { InstallationManager im = Installer; ContentItem root = im.InsertExportFile(fileUpload.FileContent, fileUpload.FileName); InsertRoot(root); }
private void InsertFromFile(string path) { InstallationManager im = Installer; using (Stream read = File.OpenRead(path)) { ContentItem root = im.InsertExportFile(read, path); InsertRoot(root); } }