Adding configurable properties for max_binary_size
This commit is contained in:
@@ -168,7 +168,13 @@ public class FhirServerConfigCommon {
|
||||
@Lazy
|
||||
@Bean
|
||||
public IBinaryStorageSvc binaryStorageSvc() {
|
||||
return new DatabaseBlobBinaryStorageSvcImpl();
|
||||
DatabaseBlobBinaryStorageSvcImpl binaryStorageSvc = new DatabaseBlobBinaryStorageSvcImpl();
|
||||
|
||||
if (HapiProperties.getMaxBinarySize() != null) {
|
||||
binaryStorageSvc.setMaximumBinarySize(HapiProperties.getMaxBinarySize());
|
||||
}
|
||||
|
||||
return binaryStorageSvc;
|
||||
}
|
||||
|
||||
@Bean()
|
||||
|
||||
Reference in New Issue
Block a user