title: Java MimeMail : getting extra characters after decoding
body: <p>i am using standard java javax.mail.internet.MimePartDataSource.getInputStream to get the attachment associated with email. The issue i am facing is:</p>
  
  <p><code>the size of the file attached is 10950 bytes(excel).
  The size of file i get using MimePartDataSource is 14810 bytes.
  </code></p>
  
  <p>If i remove the last extra character and try to open it, it works fine; but if i try to open without deleting the extra bytes  a pop-up gets generated indicating 'want to recover the file?'
  and then if i say yes , it works.</p>
  
  <p>I was facing this issue with excel and pdf .
  Can you put some light in it?</p>
  
  <p>Thanks ,
  Arindam</p>