Hi,
As far as the content is concerned the zip file is a binary file
just like the image file. All you have to do is read the file through
a file input stream and then create a new DataSource using that
inputstream.
Ajith
On 5/4/06, Michele Mazzucco [EMAIL PROTECTED] wrote:
Hi all,
the
Hi Ajith,
thanks for your reply. My questions, actually, is:
In the MTOM sample application, the client has this metho
private OMElement createEnvelope(String fileName) throws Exception {
DataHandler expectedDH;
OMFactory fac = OMAbstractFactory.getOMFactory();
@ws.apache.org
Subject: Re: [Axis2] MTOM binary content
Hi Ajith,
thanks for your reply. My questions, actually, is:
In the MTOM sample application, the client has this metho
private OMElement createEnvelope(String fileName) throws Exception {
DataHandler expectedDH
/0_95/OMTutorial.html
http://ws.apache.org/axis2/0_95/OMTutorial.html
-Original Message-
From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 6:36 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] MTOM binary content
Hi Ajith
, May 04, 2006 7:38 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] MTOM binary content
Hi Micheal,
thanks for your reply. Is your solution MTOM compliant?
Michael Robinson wrote:
XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamReader(new
FileReader(inputFile
Hi,
What is required for the DataHandler is some sort of input soure. So
as long as you have a DataSource that represents the binary then you
are fine!
Here is a code sample for doing that
previous code
FileDataSource dataSource = new FileDataSource(yourfile.zip);
expectedDH =
, May 04, 2006 7:38 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] MTOM binary content
Hi Micheal,
thanks for your reply. Is your solution MTOM compliant?
Michael Robinson wrote:
XMLStreamReader parser =
XMLInputFactory.newInstance().createXMLStreamReader(new
FileReader(inputFile
-Original Message-
From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 9:35 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] MTOM binary content
Micheal,
my question comes from there, since the sample shown at
http://ws.apache.org/axis2/0_95/mtom-guide.html
loads