title: Send Email Attachement using byte[] with Java-Mail
body: <p>I have a byte array wich i wish to add as an attachement to an email i am sending.</p>
  
  <p>Unfortunally i can't find how to attach it as a byte array, the solution i have uses disk files (which i dont want since i dont want to write the byte array just so i can attach it).</p>
  
  <p>I've found one solution that involves creating an object that extends DataSource and use this as a wrapper for the byte array and then feed that to the MimeBodyPart.</p>
  
  <p>Anyone know of a better solution?</p>