public static FileStream DownloadFile(string path) { var filePath = pathFinder.GetApplicationPath() + "_layouts/15/GroupDocs_Annotation_SharePoint_WebPart/App_Data/" + path; FileStream ff = File.OpenRead(filePath); return(ff); }
public AnnotationScripts() { var pathFinder = new ApplicationPathFinder(); _appPath = pathFinder.GetApplicationPath() + "_layouts/15/GroupDocs_Annotation_SharePoint_WebPart/"; _scriptTemplate = string.Format("<script type='text/javascript' src='{0}{1}Scripts/{{1}}'></script>", _appPath, _urlPrefix); _stylesheetTemplate = string.Format("<link rel='stylesheet' type='text/css' href='{0}{1}CSS/{{1}}' />", _appPath, _urlPrefix); }