Created
March 5, 2013 22:33
-
-
Save timsavery/5094959 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Stream RetrieveReportFileChunkable(int reportID, Chatham.Libraries.Enumerations.Report reportType) | |
{ | |
FileInfo targetFile; | |
if (reportType == Chatham.Libraries.Enumerations.Report.FMSDataIntegration) | |
{ | |
// We save data feed files as xml | |
targetFile = new FileInfo(DocumentManagementHelper.CachedDataFeedFileName(reportID)); | |
} | |
else | |
{ | |
targetFile = new FileInfo(DocumentManagementHelper.CachedReportFileName(reportID)); | |
} | |
using (var stream = targetFile.Open(FileMode.Open, FileAccess.Read, FileShare.Read)) { | |
return stream; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment