Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 51705 invoked from network); 17 May 2007 20:53:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 20:53:37 -0000 Received: (qmail 6267 invoked by uid 500); 17 May 2007 20:53:40 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 6211 invoked by uid 500); 17 May 2007 20:53:40 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 6197 invoked by uid 99); 17 May 2007 20:53:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 13:53:40 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [194.63.247.142] (HELO eml3.in.gr) (194.63.247.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 13:53:33 -0700 Received: from mail1.internal.ramnet.gr (mail1.internal.ramnet.gr [10.3.5.10]) by eml3.in.gr (8.13.4/8.13.4/SuSE Linux 0.7) with ESMTP id l4HKrBgb009607 for ; Thu, 17 May 2007 23:53:11 +0300 Received: from mail pickup service by mail1.internal.ramnet.gr with Microsoft SMTPSVC; Thu, 17 May 2007 23:52:51 +0300 Content-Class: urn:content-classes:message From: To: Subject: =?iso-8859-7?Q?=D0=D1:_Cannot_send_an_image/jpeg?= Date: Thu, 17 May 2007 23:52:51 +0300 Message-ID: <941101c798c5$55b65360$0a05030a@internal.ramnet.gr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 thread-index: AceYxVWzF5mWPPB9SI2JywkTYyq30Q== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Antivirus: checked in 0.031sec at eml3.in.gr ([10.3.203.7]) by smf-clamd v1.2.1 - http://smfs.sf.net/ X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am trying to send an image/jpeg attachment using AXIS2 on the client = side. My wsdl looks like this for the data type picture When I compile the wsdl using wsdl2java I get back a class (Picture) = which holds the imageData in a DataHandler. On the client side my code is: String endpoint =3D = "http://127.0.0.1:8081/AttachmentHandlerBeanService/AttachmentHandlerBean= "; AttachmentHandlerServiceStub stub =3D new = AttachmentHandlerServiceStub(endpoint); ................................................. Picture pic =3D new Picture(); File file =3D new File("e:\\test.jpeg"); =20 BufferedImage image =3D ImageIO.read(file); =20 DataHandler imgDH =3D new DataHandler(image, "image/jpeg"); pic.setImageData(imgDH); GetLicencingInfo5 licencingInfo5 =3D new GetLicencingInfo5(); licencingInfo5.setGetLicencingInfo5(pic); stub.getLicencingInfo5(licencingInfo5) When I call the remote method, tcpmon shows that=20 The DataHandler at the client side holds the data (using ImageIO.write() = on the DataHandler content gives me the image back). For some reason = AXIS2 does not send it out. Thanks in advance for your help dimtiris --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org