• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Email attachments sending as att*.dat

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Emily Sit
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oops, I can't count.  It seems the issue is when the filename is longer than 60 characters
 
bacon. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic