posted 6 years ago
I recently upgraded an old webservice from Jdk 1.6 on Weblogic 10.3.6 on SOLARIS 10 server to Jdk 1.8/Weblogic 12cR2 on AIX 7.1 server.
The application creates an excel report using the poi library and then zips the file up using java.util.zip. After that it calls an internal library which uses javax.mail to send an email with the attachment.
All is good in the old world with the old java/weblogic on Solaris. But once migrated over the attachments turned into att*.dat when received on the client end but only if the filename exceeded 61 characters long. The file can be renamed with .zip extension and opens just fine.
Does anyone have any ideas why that would be and how I could fix that so it sends the file without it being converted to att*.dat?