jodd-mail/src/main/java/jodd/mail/EmailAttachment.java
public byte[] toByteArray() {
		final FastByteArrayOutputStream out;
		if (size != -1) {
			out = new FastByteArrayOutputStream(size);
		} else {
			out = new FastByteArrayOutputStream();
		}
		writeToStream(out);
		return out.toByteArray();
	}
public byte[] toByteArray() {
		final FastByteArrayOutputStream out;
		if (size != -1) {
			out = new FastByteArrayOutputStream(size);
		} else {
			out = new FastByteArrayOutputStream();
		}
		writeToStream(out);
		return out.toByteArray();
	}
Returns byte content of the attachment.

@return byte array with content of the attachment.