Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94B821737C for ; Thu, 5 Feb 2015 16:07:42 +0000 (UTC) Received: (qmail 84359 invoked by uid 500); 5 Feb 2015 16:07:41 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 84252 invoked by uid 500); 5 Feb 2015 16:07:41 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 17752 invoked by uid 99); 5 Feb 2015 15:48:30 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=SPF_FAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of rrapozo@moredata.pt) Date: Thu, 5 Feb 2015 08:46:43 -0700 (MST) From: rrapozo To: users@camel.apache.org Message-ID: <1423151203476-5762430.post@n5.nabble.com> Subject: Camel Mail - It's possible "attach" image in body with camel MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org With the below I can put a image in the mail body Multipart multipart = new MimeMultipart(); BodyPart htmlPart = new MimeBodyPart(); htmlPart.setContent(content, "text/html; charset=UTF-8"); BodyPart imagePart = new MimeBodyPart(); DataSource fds = new FileDataSource(pathImage); imagePart.setDataHandler(new DataHandler(fds)); imagePart.setHeader("Content-ID", ""); multipart.addBodyPart(htmlPart); multipart.addBodyPart(imagePart); I want make the same thing just with camel like : exchange.getIn().setBody(body); //Here I think that have a way to put my image in the body of mail. Regards Rodrigo Rapozo -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Mail-It-s-possible-attach-image-in-body-with-camel-tp5762430.html Sent from the Camel - Users mailing list archive at Nabble.com.