LocalFileStorage
This commit is contained in:
@@ -50,11 +50,13 @@ namespace BeWo.Service.ServiceImplementations
|
||||
public Stream GetPdf()
|
||||
{
|
||||
WebOperationContext.Current.OutgoingResponse.ContentType = "application/pdf";
|
||||
WebOperationContext.Current.OutgoingResponse.Headers.Add("Content-Disposition", "attachment; filename=\"helloworld.pdf\"");
|
||||
WebOperationContext.Current.OutgoingResponse.Headers.Add("Content-Disposition", "inline; filename=\"helloworld.pdf\"");
|
||||
|
||||
var lFilePath = MergedConfig.GetSetting(WebConfigSetting.HelloWorldPdfLocation);
|
||||
|
||||
return new FileStream(lFilePath, FileMode.Open, FileAccess.Read);
|
||||
}
|
||||
|
||||
public Stream GetPdf2() => GetPdf();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user