LocalFileStorage

This commit is contained in:
2025-06-05 14:03:55 +02:00
parent 5e7080fd9d
commit ed4dc8fa75
24 changed files with 298 additions and 189 deletions

View File

@@ -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();
}
}