|
|
@ -74,7 +74,7 @@ public class SchedulerEstrazioneFirme implements MessageListener { |
|
|
|
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(user)); |
|
|
|
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(user)); |
|
|
|
byte[] fileBytes = FileUtil.getBytes(fileEntry.getContentStream()); |
|
|
|
byte[] fileBytes = FileUtil.getBytes(fileEntry.getContentStream()); |
|
|
|
MultipartEntityBuilder builder = MultipartEntityBuilder.create(); |
|
|
|
MultipartEntityBuilder builder = MultipartEntityBuilder.create(); |
|
|
|
ContentBody body = new ByteArrayBody(fileBytes, fileEntry.getTitle()); |
|
|
|
ContentBody body = new ByteArrayBody(fileBytes, fileEntry.getTitle().toLowerCase()); |
|
|
|
builder.addPart("file", body); |
|
|
|
builder.addPart("file", body); |
|
|
|
HttpPost request = new HttpPost(urlPdfExtractor); |
|
|
|
HttpPost request = new HttpPost(urlPdfExtractor); |
|
|
|
request.setEntity(builder.build()); |
|
|
|
request.setEntity(builder.build()); |
|
|
|