jodd-mail/src/main/java/jodd/mail/EmailAttachmentBuilder.java
public EmailAttachmentBuilder content(final byte[] bytes, final String contentType) {
		return content(new ByteArrayDataSource(bytes, resolveContentType(contentType)));
	}
public EmailAttachmentBuilder content(final byte[] bytes, final String contentType) {
		return content(new ByteArrayDataSource(bytes, resolveContentType(contentType)));
	}
public EmailAttachmentBuilder content ( final byte [ ] bytes , final String contentType ) { return content ( new ByteArrayDataSource ( bytes , resolveContentType ( contentType ) ) ) ; }
Creates new {@link ByteArrayDataSource} and then calls {@link #content(DataSource)}.

@param bytes       array of bytes
@param contentType content type from {@link EmailAttachment}.
@return this
@see #content(DataSource)
Creates new { @link ByteArrayDataSource } and then calls { @link #content ( DataSource ) } .