Details
-
Bug
-
Resolution: Fixed
-
Minor
-
10.11
-
Unknown
-
N/A
-
N/A
-
Description
Right now we do:
temporaryAttachmentFile = new TemporaryFile(File.createTempFile("attachment", ".tmp", this.temporaryDirectory)); fos = new FileOutputStream(temporaryAttachmentFile); fos.write(attachment.getContent());
The call to getContent() loads the attachment content in memory which is not good since it means requiring more memory than needed.