title: Mail Attachments with byte array
body: <p>I got a javax.mail.Session named lSession, and a MimeMessage lMessage :</p>
  
  <pre><code>Session lSession = Session.getDefaultInstance(properties);
  MimeMessage lMessage = new MimeMessage(lSession);
  </code></pre>
  
  <p>I got a List of Byte Array who contains file's representations :</p>
  
  <pre><code>List &lt;byte[]&gt; pPiecesJointes
  </code></pre>
  
  <p>I try to attach these file to the message, but I can't fix it....</p>
  
  <pre><code>if(!pPiecesJointes.isEmpty()){
      lMultipart = new MimeMultipart();
      lMessageBodyPart = new MimeBodyPart();
      // text message
      lMessageBodyPart.setText(pMessage);
      lMultipart.addBodyPart(lMessageBodyPart);
      for(int i = 0; i &lt; pPiecesJointes.size(); i++){
          lMessageBodyPart = new MimeBodyPart();
          /* ?????? How add attachment in lMessageBodyPart with a Byte Array ?
          */ 
          lMultipart.addBodyPart(lMessageBodyPart);
      }
      lMessage.setContent(lMultipart);
  }
  
  Transport.send(lMessage);
  </code></pre>
  
  <p>Please, if somebody knows who attach the file with a byte array ?</p>