|
|
@@ -538,10 +538,9 @@ public class UploadProvider extends GenericUploadProvider implements IUploadServ
|
|
|
return result;
|
|
|
}
|
|
|
byte[] fileBlob = fileInfo.getFileBytes();
|
|
|
- InputStream input = new ByteArrayInputStream(fileBlob);
|
|
|
+ //InputStream input = new ByteArrayInputStream(fileBlob);
|
|
|
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
|
|
- PDFFileUtil.stamp(input,output,action);
|
|
|
-
|
|
|
+ PDFFileUtil.stampByPdfbox(fileBlob,output,action);
|
|
|
ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());
|
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
|
params.put(FileParam.CUR_USER_ID, ContextUtil.getCurrentUser().getUserId());
|